diff options
author | Michael Paquier | 2024-01-24 05:20:08 +0000 |
---|---|---|
committer | Michael Paquier | 2024-01-24 05:20:08 +0000 |
commit | 51193e7a7d333e2f19048c97a336da436b7d97e9 (patch) | |
tree | f7114ea9d7c26b692923be7b3f368ba9b0831ad2 /src/backend/utils/adt/xml.c | |
parent | 8b31b689f4db9fca726a8d1bab20b89ebb3fa0b1 (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/utils/adt/xml.c')
0 files changed, 0 insertions, 0 deletions