Обсуждение: pg_dump on Postgres 9.1
Hello,
Is there any reported bug with pg_dump in Postgres 9.1, on AIX ? The following command hangs for “ever” and has to be interrupted. It creates a zero-length file.
pg_dump -Fc alan1 > alan1.dmp
If I run the command in the verbose mode, I see that it stops at “saving database definition”. See below:
ares> pg_dump -Fc alan1 -v > alan1.dmp
pg_dump: too many command-line arguments (first is "-v")
Try "pg_dump --help" for more information.
/u/postgres
ares> pg_dump -v -Fc alan1 > alan1.dmp
pg_dump: reading schemas
pg_dump: reading user-defined tables
pg_dump: reading extensions
pg_dump: reading user-defined functions
pg_dump: reading user-defined types
pg_dump: reading procedural languages
pg_dump: reading user-defined aggregate functions
pg_dump: reading user-defined operators
pg_dump: reading user-defined operator classes
pg_dump: reading user-defined operator families
pg_dump: reading user-defined text search parsers
pg_dump: reading user-defined text search templates
pg_dump: reading user-defined text search dictionaries
pg_dump: reading user-defined text search configurations
pg_dump: reading user-defined foreign-data wrappers
pg_dump: reading user-defined foreign servers
pg_dump: reading default privileges
pg_dump: reading user-defined collations
pg_dump: reading user-defined conversions
pg_dump: reading type casts
pg_dump: reading table inheritance information
pg_dump: reading rewrite rules
pg_dump: finding extension members
pg_dump: finding inheritance relationships
pg_dump: reading column info for interesting tables
pg_dump: finding the columns and types of table "student"
pg_dump: finding the columns and types of table "a_rec"
pg_dump: finding the columns and types of table "course"
pg_dump: finding the columns and types of table "takes"
pg_dump: flagging inherited columns in subtables
pg_dump: reading indexes
pg_dump: reading constraints
pg_dump: reading triggers
pg_dump: reading large objects
pg_dump: reading dependency data
pg_dump: saving encoding = LATIN1
pg_dump: saving standard_conforming_strings = on
pg_dump: saving database definition
------------
Thanks.
A.J.Andrews.
This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Any distribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized. If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately.
Ce courriel est confidentiel et prot�g�. L'exp�diteur ne renonce pas aux droits et obligations qui s'y rapportent. Toute diffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les) destinataire(s) d�sign�(s) est interdite. Si vous recevez ce courriel par erreur, veuillez m'en aviser imm�diatement, par retour de courriel ou par un autre moyen.
Mail sent via the Abaca EPG
Alanoly Andrews <alanolya@invera.com> writes: > Is there any reported bug with pg_dump in Postgres 9.1, on AIX ? The following command hangs for "ever" and has to be interrupted.It creates a zero-length file. We had a recent report of strange server-side behavior on AIX that went away after rebuilding with a newer version of xlc, suggesting that the code was getting bitten by an xlc optimization bug. Perhaps this is the same thing inside pg_dump. If you're not using the latest xlc, try updating. If you are, does rebuilding with -O0 change the behavior? regards, tom lane
On this issue, instead of going for a newer version of xlc, as suggested, I opted to get a newer version of the Postgressource code, 9.1.4. After compiling it with the same xlc version, I found that pg_dump works as expected. So, theproblem appears to be somewhere in the 9.1 source code, at least for binaries created from it for AIX (6.1). Regards. Alanoly. -----Original Message----- From: Tom Lane [mailto:tgl@sss.pgh.pa.us] Sent: Friday, July 27, 2012 12:13 PM To: Alanoly Andrews Cc: 'pgsql-admin@postgresql.org' Subject: Re: [ADMIN] pg_dump on Postgres 9.1 Alanoly Andrews <alanolya@invera.com> writes: > Is there any reported bug with pg_dump in Postgres 9.1, on AIX ? The following command hangs for "ever" and has to be interrupted.It creates a zero-length file. We had a recent report of strange server-side behavior on AIX that went away after rebuilding with a newer version of xlc,suggesting that the code was getting bitten by an xlc optimization bug. Perhaps this is the same thing inside pg_dump. If you're not using the latest xlc, try updating. If you are, does rebuilding with -O0 change the behavior? regards, tom lane **************************************************** This e-mail may be privileged and/or confidential, and the sender does not waive any related rights and obligations. Anydistribution, use or copying of this e-mail or the information it contains by other than an intended recipient is unauthorized.If you received this e-mail in error, please advise me (by return e-mail or otherwise) immediately. Ce courriel est confidentiel et prot�g�. L'exp�diteur ne renonce pas aux droits et obligations qui s'y rapportent. Toutediffusion, utilisation ou copie de ce message ou des renseignements qu'il contient par une personne autre que le (les)destinataire(s) d�sign�(s) est interdite. Si vous recevez ce courriel par erreur, veuillez m'en aviser imm�diatement,par retour de courriel ou par un autre moyen. ****************************************************
Alanoly Andrews <alanolya@invera.com> writes: > On this issue, instead of going for a newer version of xlc, as suggested, I opted to get a newer version of the Postgressource code, 9.1.4. After compiling it with the same xlc version, I found that pg_dump works as expected. So, theproblem appears to be somewhere in the 9.1 source code, at least for binaries created from it for AIX (6.1). Hm, maybe this 9.1.2 fix? Author: Tom Lane <tgl@sss.pgh.pa.us> Branch: master Release: REL9_2_BR [cf22e851b] 2011-11-10 16:09:01 -0500 Branch: REL9_1_STABLE Release: REL9_1_2 [febda37fd] 2011-11-10 16:09:16 -0500 Avoid platform-dependent infinite loop in pg_dump. If malloc(0) returns NULL, the binary search in findSecLabels() will probably go into an infinite loop when there are no security labels, because NULL-1 is greater than NULL after wraparound. (We've seen this pathology before ... I wonder whether there's a way to detect the class of bugs automatically?) Diagnosis and patch by Steve Singer, cosmetic adjustments by me regards, tom lane