From: Tom Lane <tgl@sss.pgh.pa.us>
To: movead li <movead.li@highgo.ca>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: Rearranging ALTER TABLE to avoid multi-operations bugs
Date: Mon, 01 Jul 2019 22:00:29 -0400
Message-ID: <1616.1562032829@sss.pgh.pa.us> (raw)
In-Reply-To: <156041479952.1280.2626916806999463144.pgcf@coridan.postgresql.org>
References: <10365.1558909428@sss.pgh.pa.us>
<41540.1559168266@sss.pgh.pa.us>
<156041479952.1280.2626916806999463144.pgcf@coridan.postgresql.org>
movead li <movead.li@highgo.ca> writes:
> I applied the 'alter-table-with-recursive-process-utility-calls-wip.patch'
> on the master(e788e849addd56007a0e75f3b5514f294a0f3bca). And
> when I test the cases, I find it works well on 'alter table t1 add column
> f2 int not null, alter column f2 add generated always as identity' case,
> but it doesn't work on #14827, #15180, #15670, #15710.
This review seems not very on-point, because I made no claim to have fixed
any of those bugs. The issue at the moment is how to structure the code
to allow ALTER TABLE to call other utility statements --- or, if we aren't
going to do that as Robert seems not to want to, what exactly we're going
to do instead.
The patch at hand does fix some ALTER TABLE ... IDENTITY bugs, because
fixing those doesn't require any conditional execution of utility
statements. But we'll need infrastructure for such conditional execution
to fix the original bugs. I don't see much point in working on that part
until we have some agreement about how to handle what this patch is
already doing.
regards, tom lane
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-hackers@postgresql.org
Cc: tgl@sss.pgh.pa.us, movead.li@highgo.ca
Subject: Re: Rearranging ALTER TABLE to avoid multi-operations bugs
In-Reply-To: <1616.1562032829@sss.pgh.pa.us>
References: <10365.1558909428@sss.pgh.pa.us> <41540.1559168266@sss.pgh.pa.us> <156041479952.1280.2626916806999463144.pgcf@coridan.postgresql.org> <1616.1562032829@sss.pgh.pa.us>
* 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