[GENERAL] Can somebody explain what is the meaning for HashAggregate?

2015-09-20 Thread lin
Can somebody explain what does the postgres done for the explain of sql shows HashAggregate( what is the meaning for HashAggregate )? for example: postgres=# explain verbose select oid,relname from pg_class group by oid,relname; QUERY PLAN

[GENERAL] change the value of "unix_socket_directories" , must used "-h /xx/xx" to use the Unix domain socket

2014-08-16 Thread lin
Hi all, I change the value of "unix_socket_directories" in postgresql.conf , then restart the database, but it cannot connect the database used like this "psql -d postgres -p 5432" , it must given the parameter " -h /xx/xx" to use the Unix domain socket。 how to fix this issue ? th

[GENERAL] The file of toc.dat (got by using the command: pg_dump -Fd ) may be need to have readability

2014-12-01 Thread lin
Hi all, When using the command "pg_dump -Fd" to backup data, I find the content of toc.dat is hard for read, just like this: " ^@"^@^@^@DROP SEQUENCE public.test_id_seq" , So may be we should do some work to make the file "toc.dat" more readable. Thanks, Lin

[GENERAL] pg_restore -n sch1 : schema "sch1" does not exist

2014-12-09 Thread lin
Hi,all: I create a schema (sch1) in the database of db1, and I also create a table sch1.t1, then I use the comand "pg_dump -d db1 -Fd -f dir1" to back up the database of db1; at lase I drop the schema of sch1; I want to restore the schema sch1, but when I execute the command "pg_restor

Re: [GENERAL] pg_restore -n sch1 : schema "sch1" does not exist

2014-12-09 Thread lin
Are you sure it is a bug and you have fixed it? I test it with postgresql-9.4rcl, the result is the same with postgresql-9.3 beta2. At 2014-12-09 23:54:01, "Tom Lane" wrote: >lin writes: >> I create a schema (sch1) in the database of db1, and I also create

[GENERAL] the master has two sync slave, which slave can promote to master and the other slave as the new master's slave?

2017-03-18 Thread lin
Hi, everyone. I am puzzled about the question: the master A has two slave slave_1 , slave_2 , the version of postgres is 9.3. I want to promote one slave to master, and the other slave as the new master's slave, but which slave should can promote ? get the master-slave information from old

[GENERAL] how can I use "pg_basebackup" and not include pg_log of master ?

2017-03-20 Thread lin
Hi, all. I use "pg_basebackup" to make slave, but the master has too large logs of pg_log, How Can I use "pg_basebackup" but not include logs of "pg_log" ? best regards, wln

Re: [GENERAL] how can I use "pg_basebackup" and not include pg_log of master ?

2017-03-20 Thread lin
e->d_name, "..") == 0) ++ if (strcmp(de->d_name, ".") == 0 || strcmp(de->d_name, "..") == 0 || strcmp(de->d_name, "pg_log")) Is there something wrong ? Thanks, wln At 2017-03-20 20:43:11, "Michael Paquier" wr

[GENERAL] postgres source code function "internal_ping" may be not right in some conditions

2017-03-24 Thread lin
Hi, all. I have test the function "internal_ping", and find in some conditions, the return result is not right. the code, you can see : http://code.taobao.org/p/pgsql953/src/src/interfaces/libpq/fe-connect.c if conn->status == CONNECTION_BAD , and the "conn->last_sqlstate" is "28000", th

[GENERAL] AEXPR_OR, AEXPR_AND is not in postgres 9.6, how can I rewrite where it used in 9.3 ?

2017-04-04 Thread lin
Hi, all. I use "AEXPR_OR", "AEXPR_AND" in postgres 9.3 ,now I update the postgres version to 9.6, but the 9.6 version has not the "AEXPR_OR", "AEXPR_AND". How can I solve the problem ? Thanks, wln

[GENERAL] how to use the struct "RangeFunction" in Postgres 9.6 ?

2017-05-22 Thread lin
Hi all, I am puzzled for how to use the struct "RangeFunction" in Postgres 9.6, the struct "RangeFunction" is not the same with 9.3. Can someone help me how to write the function "make_RangeFunction"? the code as below: SelectStmt *stmt = makeNode(SelectStmt); List *args = list

[GENERAL] Backup strategy using 'wal_keep_segments'

2017-10-22 Thread Rhhh Lin
Hi, Version 9.4... Per the PG docs, to facilitate continuous WAL archiving and PITR recovery... "To enable WAL archiving, set the wal_level configuration parameter to archive (or hot_standby), archive_mode to on, and specify the shell command to use in the archive_command configuration paramet

Re: [GENERAL] Backup strategy using 'wal_keep_segments'

2017-10-23 Thread Rhhh Lin
Thanks very much for your reply Michael. I note that it looks like pgbarman employs pg_receivexlog; I will check it out. Regards, Ruan From: Michael Paquier Sent: 22 October 2017 22:17:01 To: Rhhh Lin Cc: pgsql-general@postgresql.org Subject: Re: [GENERAL

Re: [GENERAL] Backup strategy using 'wal_keep_segments'

2017-10-31 Thread Rhhh Lin
ng called upon again for restartpoints/checkpoints. That is, where is my absolute point (or file) of archival using something along the lines of 'pg_current_xlog_location'. Regards, Ruan From: Stephen Frost Sent: 30 October 2017 16:41:11

[GENERAL] EXPLAIN command just hangs...

2017-11-02 Thread Rhhh Lin
Hi all, version = Postgres 9.3.10 I have a table with approx. 5 million rows. It is defined something like the below. col: type: timestamp bigint measurement_id integer value numeric(24,5) minval numeric(24,5) maxval numeric(24,5) There are two BTree indexes in place on the PK ("timestamp", "me

Re: [GENERAL] EXPLAIN command just hangs...

2017-11-02 Thread Rhhh Lin
: Justin Pryzby Sent: 02 November 2017 21:02 To: Rhhh Lin Cc: pgsql-general@postgresql.org Subject: Re: [GENERAL] EXPLAIN command just hangs... On Thu, Nov 02, 2017 at 08:51:23PM +, Rhhh Lin wrote: > However, this query will run for days without completing. I suspect it has to > do w

Re: [GENERAL] EXPLAIN command just hangs...

2017-11-03 Thread Rhhh Lin
ot;timestamp", but right now I cannot check and verify because it just hangs... Regard, Ruan From: Tom Lane Sent: 02 November 2017 21:40 To: Rhhh Lin Cc: Justin Pryzby; pgsql-general@postgresql.org Subject: Re: [GENERAL] EXPLAIN command just hangs.

Re: [GENERAL] EXPLAIN command just hangs...

2017-11-03 Thread Rhhh Lin
y repercussions... Regards, Ruan From: Justin Pryzby Sent: 02 November 2017 21:49 To: Rhhh Lin Cc: pgsql-general@postgresql.org Subject: Re: [GENERAL] EXPLAIN command just hangs... On Thu, Nov 02, 2017 at 09:13:05PM +, Rhhh Lin wrote: > Yes, it may be an issue with the index, but I&

Re: [GENERAL] EXPLAIN command just hangs...

2017-11-03 Thread Rhhh Lin
art the server, implement a vacuum execution and see where I am at then. Regards, Ruan From: Justin Pryzby Sent: 03 November 2017 21:33 To: Rhhh Lin Cc: Tom Lane; pgsql-general@postgresql.org Subject: Re: [GENERAL] EXPLAIN command just hangs... On Fri, Nov 03,

Re: [GENERAL]

2017-11-03 Thread Rhhh Lin
Thanks for the explanation Kevin! Regards, Ruan From: pgsql-general-ow...@postgresql.org on behalf of K. Brannen Sent: 03 November 2017 14:35 To: pgsql-general@postgresql.org Subject: [GENERAL] Rhhh Lin wrote: > *Also, as a sidenote - can someone ple

Re: [GENERAL] EXPLAIN command just hangs...

2017-11-03 Thread Rhhh Lin
, Rhhh Lin wrote: [...] > where timestamp BETWEEN 150667656 AND 150875022 [...] > *Also, as a sidenote - can someone please expand on why one (I was not > involved > in the creation of this DB/schema definition) would choose to have the > definition of the timestamp column as a

[GENERAL] connect to remote db

2003-08-14 Thread Yi LIN
site willy. java.sql.SQLException: User authentication failed If I tried local database url="repl_willy", the same username and password work well. I did run "createuser" script and even run SQL "create user ..". What do I missed? Thanks, Yi Lin

[GENERAL] More OO Support

2000-06-24 Thread lincy lin
Hi ! I am new comer to PostgreSQL. I have few years experience of OODB (CA-Jasmine). It's is possible to give PostgreSQL more oo support in future release ? If PostgreSQL can support method and collection will very helpful. I hope the mail-list was the correctly place to post