]> granicus.if.org Git - postgresql/commit
Fix use-after-free bug when renaming constraints
authorMichael Paquier <michael@paquier.xyz>
Mon, 17 Dec 2018 03:43:48 +0000 (12:43 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 17 Dec 2018 03:43:48 +0000 (12:43 +0900)
commit91fc2a08830139d9c11b189a2407cfdf113f550f
treeea5baab2db6d026aecead3a31399f0f93479c974
parentda13d90a5fba051d16df3b4fdaac23abc9560f38
Fix use-after-free bug when renaming constraints

This is an oversight from recent commit b13fd344.  While on it, tweak
the previous test with a better name for the renamed primary key.

Detected by buildfarm member prion which forces relation cache release
with -DRELCACHE_FORCE_RELEASE.  Back-patch down to 9.4 as the previous
commit.
src/backend/commands/tablecmds.c
src/test/regress/expected/alter_table.out
src/test/regress/sql/alter_table.sql