aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/timestamp.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2024-01-24 14:20:14 +0900
committerMichael Paquier <michael@paquier.xyz>2024-01-24 14:20:14 +0900
commit2f724283719e75261d3b649d20235e4f1542be04 (patch)
tree7dffc9b2347887943807cc3ac669fadecf50cb09 /src/backend/utils/adt/timestamp.c
parent81038228582aa92718be2afcb7ddb67a5a19fa43 (diff)
downloadpostgresql-2f724283719e75261d3b649d20235e4f1542be04.tar.gz
postgresql-2f724283719e75261d3b649d20235e4f1542be04.zip
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/utils/adt/timestamp.c')
0 files changed, 0 insertions, 0 deletions