diff options
author | Michael Paquier | 2024-01-24 05:20:01 +0000 |
---|---|---|
committer | Michael Paquier | 2024-01-24 05:20:01 +0000 |
commit | bb812ab0917e153f11bf449d7cb996815c07e387 (patch) | |
tree | 77f88f3109627a74ccaf6e64738589f054c44984 /src/backend/executor | |
parent | bcd5b4bcbefc8b99be3678cf9c6c990a0c28f68e (diff) |
Fix ALTER TABLE .. ADD COLUMN with complex inheritance trees
This command, when used to add a column on a parent table with a complex
inheritance tree, tried to update multiple times the same tuple in
pg_attribute for a child table when incrementing attinhcount, causing
failures with "tuple already updated by self" because of a missing
CommandCounterIncrement() between two updates.
This exists for a rather long time, so backpatch all the way down.
Reported-by: Alexander Lakhin
Author: Tender Wang
Reviewed-by: Richard Guo
Discussion: https://postgr.es/m/[email protected]
Backpatch-through: 12
Diffstat (limited to 'src/backend/executor')
0 files changed, 0 insertions, 0 deletions