pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robert Haas <robertmhaas@gmail.com>
To: Noah Misch <noah@leadboat.com>
Cc: Naoya Anzai <anzai-naoya@mxu.nes.nec.co.jp>
Cc: pgsql-hackers@postgresql.org
Subject: Re: BUG #5856: pg_attribute.attinhcount is not correct.
Date: Sun, 3 Apr 2011 21:53:57 -0400
Message-ID: <BANLkTimcxnodo2E24q66cwVf5HYfQt9aQQ@mail.gmail.com> (raw)
In-Reply-To: <20110401045629.GA9314@tornado.gateway.2wire.net>
References: <201101311142.p0VBgVGd019556@wwwmaster.postgresql.org>
	<AANLkTik6ArKPwnvA8_9XHo9j9+w4A2UEnsheX-mwR=Aj@mail.gmail.com>
	<20110331100649.GA7286@tornado.gateway.2wire.net>
	<AANLkTimewDjh-6i7DrCKJA8iaSfpi3MWn0XcFQyx6yON@mail.gmail.com>
	<20110401045629.GA9314@tornado.gateway.2wire.net>

On Fri, Apr 1, 2011 at 12:56 AM, Noah Misch <noah@leadboat.com> wrote:
> On Thu, Mar 31, 2011 at 11:11:49AM -0400, Robert Haas wrote:
>> On Thu, Mar 31, 2011 at 6:06 AM, Noah Misch <noah@leadboat.com> wrote:
>> >> I think this is a manifestation the same problem mentioned here:
>> >>
>> >> http://git.postgresql.org/gitweb?p=postgresql.git;a=commit;h=31b6fc06d83c6de3644c8f2921eb7de0eb92fac...
>> >>
>> >> I believe this requires some refactoring to fix. ?It would be good to do that.
>> >
>> > The best way I can see is to make ATExecAddColumn more like ATExecDropColumn,
>> > ATAddCheckConstraint, and ATExecDropConstraint. ?Namely, recurse at Exec-time
>> > rather than Prep-time, and cease recursing when we satisfy the ADD COLUMN with a
>> > merge. ?Did you have something else in mind?
>>
>> I had exactly what you just said in mind.
>
> Patch attached, then.

Committed.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



view thread (13+ messages)  latest in thread

Message-ID: <BANLkTimcxnodo2E24q66cwVf5HYfQt9aQQ@mail.gmail.com>
Permalink:  ../BANLkTimcxnodo2E24q66cwVf5HYfQt9aQQ@mail.gmail.com/
Also on:    postgresql.org/message-id/BANLkTimcxnodo2E24q66cwVf5HYfQt9aQQ@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: robertmhaas@gmail.com, noah@leadboat.com, anzai-naoya@mxu.nes.nec.co.jp, pgsql-hackers@postgresql.org
  Subject: Re: BUG #5856: pg_attribute.attinhcount is not correct.
  In-Reply-To: <BANLkTimcxnodo2E24q66cwVf5HYfQt9aQQ@mail.gmail.com>
  References: <201101311142.p0VBgVGd019556@wwwmaster.postgresql.org> <AANLkTik6ArKPwnvA8_9XHo9j9+w4A2UEnsheX-mwR=Aj@mail.gmail.com> <20110331100649.GA7286@tornado.gateway.2wire.net> <AANLkTimewDjh-6i7DrCKJA8iaSfpi3MWn0XcFQyx6yON@mail.gmail.com> <20110401045629.GA9314@tornado.gateway.2wire.net> <BANLkTimcxnodo2E24q66cwVf5HYfQt9aQQ@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox