Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 3FECF18BA230 for ; Wed, 18 Apr 2012 20:45:13 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SKeYg-00055L-MC for pgsql-bugs@postgresql.org; Wed, 18 Apr 2012 23:45:12 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q3INiuUB020747; Wed, 18 Apr 2012 19:44:56 -0400 (EDT) To: jon.plotky@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #6601: Inconsistent behavior of ALTER TABLE ADD COLUMN In-reply-to: References: Comments: In-reply-to jon.plotky@gmail.com message dated "Wed, 18 Apr 2012 19:00:06 -0000" Date: Wed, 18 Apr 2012 19:44:55 -0400 Message-ID: <20746.1334792695@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201204/113 X-Sequence-Number: 32864 jon.plotky@gmail.com writes: > Issue: After adding one new column to each of two different tables, querying > pg_attribute shows the new column in one table but not the other. This is a bit hard to believe, and your log extract certainly doesn't provide any evidence to support the statement. Could we see a complete self-contained test case? > - Postgresql log shows difference after the two ALTER TABLE statements (see > below), with a "forked new backend" message always following the ALTER TABLE > that does not update pg_attribute. Don't know if this has anything to do > with anything, but the log messages are always the same That only suggests a new incoming connection, which seems probably unrelated. However, if that new connection is what's going to examine pg_attribute, maybe the issue is that it's looking before the ALTER has committed? regards, tom lane