[GENERAL] full text search

2011-03-04 Thread zab08
The full text search of postgres is not support Chinese, who can give me some advises?

[GENERAL] PostgresQL group sort

2011-02-24 Thread zab08

[GENERAL] PostgreSQL group sort

2011-02-24 Thread zab08
use these sqls: CREATE TABLE big(id serial, name text); CREATE TABLE sm(id serial, big_id integer, name text); INSERT into big (id, name) VALUES (1, 'big1'); INSERT into big (id, name) VALUES (2, 'big2'); INSERT into sm(id, big_id, name)VALUES (2, 1, 'sm1'); INSERT into sm(id, big_id, name)VALU

Re: [GENERAL] multiple column to onec column

2011-02-22 Thread zab08
thanks , this is a example of my application. the ans is here, http://www.postgresql.org/docs/9.0/static/xaggr.html sql command: CREATE AGGREGATE array_accum (anyelement) ( sfunc = array_append, stype = anyarray, initcond = '{}' ); SELECT r.role_name, array_accum(permission) f

[GENERAL] multiple column to onec column

2011-02-22 Thread zab08
I have two table: CREATE TABLE roles(role_name varchar(255) primary key); CREATE TABLE roles_permissions(permission varchar(100), role_name varchar(100)); here is result by : SELECT * from roles; role_name --- role1 role2 (2 rows) here is result by : SELECT * from roles_per

Re: [GENERAL] My DataBase can't accept conntecion

2011-01-12 Thread zab08
At 2011-01-12 23:22:40,"Bill Moran" wrote: >In response to zab08 : > >> we have e test db server, we use jdbc to contect. >> but after a whie, The test db server can not accept connect. >> >> >> useps aux | grep postgrescommand : >> po

[GENERAL] My DataBase can't accept conntecion

2011-01-12 Thread zab08
we have e test db server, we use jdbc to contect. but after a whie, The test db server can not accept connect. useps aux | grep postgrescommand : postgres 16904 0.0 0.0 46036 3948 ?S17:03 0:00 /usr/local/pgsql/bin/postgres -D /usr/local/pgsql/data postgres 16906 0.0 0.0 4614

Re: [GENERAL] SSL ques

2010-12-12 Thread zab08
thank you, I install postgres from source, and use --with-openssl.

[GENERAL] SSL ques

2010-12-11 Thread zab08
when I install sysbench-0.4.8, after the make command: /usr/bin/ld: warning: libssl.so.6, needed by /opt/PostgreSQL/9.0/lib/libpq.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libcrypto.so.6, needed by /opt/PostgreSQL/9.0/lib/libpq.so, not found (try using -rpath or -

[GENERAL] SSL ques

2010-12-11 Thread zab08
when I install sysbench-0.4.8, after the make command: /usr/bin/ld: warning: libssl.so.6, needed by /opt/PostgreSQL/9.0/lib/libpq.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning: libcrypto.so.6, needed by /opt/PostgreSQL/9.0/lib/libpq.so, not found (try using -rpath or -

Re: [GENERAL] select problem

2010-11-01 Thread zab08
(SELECT * from mydata,city WHERE mydata.sample = 1 AND mydata.age_from >= city.age_from AND mydata.age_to <= city.age_to AND basen not in ('A', 'T', 'G','C')) INTERSECT (SELECT * from mydata,city WHERE mydata.sample = 2 AND mydata.age_from >= city.age_from AND mydata.age_to <= city.age_to AND base

[GENERAL] compile error in libpq program

2010-10-21 Thread zab08
I use this command to compile the libpq.c. cc -I /opt/PostgreSQL/8.4/include -o libpq libpq.c -L /opt/PostgreSQL/8.4/lib -lpq but I get these error: /usr/bin/ld: warning: libssl.so.4, needed by /opt/PostgreSQL/8.4/lib/libpq.so, not found (try using -rpath or -rpath-link) /usr/bin/ld: warning:

[GENERAL] GridSQL

2010-10-21 Thread zab08
thanks for share paper of GridSQL or others!