Fix use-after-free bug when renaming constraints
Michael Paquier <michael@paquier.xyz>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/tablecmds.c | modified | +2 −2 |
| src/test/regress/expected/alter_table.out | modified | +1 −1 |
| src/test/regress/sql/alter_table.sql | modified | +1 −1 |