From: | PG Bug reporting form <noreply(at)postgresql(dot)org> |
---|---|
To: | pgsql-bugs(at)lists(dot)postgresql(dot)org |
Cc: | exclusion(at)gmail(dot)com |
Subject: | BUG #18297: Error when adding a column to a parent table with complex inheritance |
Date: | 2024-01-16 04:00:02 |
Message-ID: | 18297-b04cd83a55b51e35@postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
The following bug has been logged on the website:
Bug reference: 18297
Logged by: Alexander Lakhin
Email address: exclusion(at)gmail(dot)com
PostgreSQL version: 16.1
Operating system: Ubuntu 22.04
Description:
The following query:
CREATE TABLE a ();
CREATE TABLE b () INHERITS (a);
CREATE TABLE c () INHERITS (b);
CREATE TABLE d () INHERITS (a,b,c);
ALTER TABLE a ADD COLUMN i int;
fails with:
NOTICE: merging definition of column "i" for child "d"
ERROR: tuple already updated by self
While with a simpler hierarchy:
CREATE TABLE a ();
CREATE TABLE b () INHERITS (a);
CREATE TABLE c () INHERITS (a,b);
the column added successfully:
ALTER TABLE a ADD COLUMN i int;
NOTICE: merging definition of column "i" for child "c"
ALTER TABLE
In the failed case the error occurred when table d was processed the third
time. First (following chain a -> b -> c-> d) the table got the column i
added, second (a -> b -> d) it got merged column definition, third
(a -> d) an attempt to merge the column definition once more failed.
This error can be seen at least on REL_12_STABLE .. master.
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2024-01-16 09:14:09 | Re: BUG #18274: Error 'invalid XML content' |
Previous Message | PG Bug reporting form | 2024-01-16 02:21:18 | BUG #18296: ARM |