diff options
author | Michael Paquier <michael@paquier.xyz> | 2024-01-24 14:20:11 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2024-01-24 14:20:11 +0900 |
commit | 5a7833f49679a3e8a17df453911b0adacea6273d (patch) | |
tree | 39b59e394415909e84cb05b5c13329cfae811d80 /src/backend/executor/nodeSubqueryscan.c | |
parent | 85ecff891525d61bc975584e2dc2d3c01e5a48ee (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/18297-b04cd83a55b51e35@postgresql.org
Backpatch-through: 12
Diffstat (limited to 'src/backend/executor/nodeSubqueryscan.c')
0 files changed, 0 insertions, 0 deletions