Fix assorted silliness in ATExecSetCompression().

Tom Lane <tgl@sss.pgh.pa.us>

Commit: ac897c483485d3858ada23ca49650a0f2742a50f
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2021-03-21T22:43:07Z
Releases: 14.0
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.

Files

PathChange+/−
src/backend/commands/tablecmds.c modified +12 −14