]> 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:39 +0000 (12:43 +0900)
committerMichael Paquier <michael@paquier.xyz>
Mon, 17 Dec 2018 03:43:39 +0000 (12:43 +0900)
commite83e0988dc62026dbabad76b206bddea3d4f830e
tree74ceeb86f05735d2081808c7fa98d93e9f5f01f6
parent25b8094d33ac66773ba1418457cb74eb22b5d50a
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