Fix assorted silliness in ATExecSetCompression().
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 21 Mar 2021 22:42:40 +0000 (18:42 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 21 Mar 2021 22:43:07 +0000 (18:43 -0400)
commitac897c483485d3858ada23ca49650a0f2742a50f
treeed54f6c83401f7c2b903ed8f4b2c255e7c3aea0f
parent9dd963ae2534e9614f0abeccaafbd39f1b93ff8a
Fix assorted silliness in ATExecSetCompression().

It's not okay to scribble directly on a syscache entry.
Nor to continue accessing said entry after releasing it.

Also get rid of not-used local variables.

Per valgrind testing.
src/backend/commands/tablecmds.c