Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 06A08930E1E for ; Fri, 3 Aug 2012 17:02:17 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SxO4a-0002ae-PP for pgsql-admin@postgresql.org; Fri, 03 Aug 2012 20:02:15 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id q73K1x3e010181; Fri, 3 Aug 2012 16:01:59 -0400 (EDT) From: Tom Lane To: Alanoly Andrews cc: "'pgsql-admin@postgresql.org'" Subject: Re: pg_dump on Postgres 9.1 In-reply-to: <09B23E7BF70425478C1330D893A722C606F6088F07@MailSVR.invera.com> References: <09B23E7BF70425478C1330D893A722C606F6088EE5@MailSVR.invera.com> <5933.1343405558@sss.pgh.pa.us> <09B23E7BF70425478C1330D893A722C606F6088F07@MailSVR.invera.com> Comments: In-reply-to Alanoly Andrews message dated "Wed, 01 Aug 2012 15:42:02 -0400" Date: Fri, 03 Aug 2012 16:01:58 -0400 Message-ID: <10180.1344024118@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201208/34 X-Sequence-Number: 39855 Alanoly Andrews writes: > On this issue, instead of going for a newer version of xlc, as suggested, I opted to get a newer version of the Postgres source code, 9.1.4. After compiling it with the same xlc version, I found that pg_dump works as expected. So, the problem 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 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