From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix assorted silliness in ATExecSetCompression().
Date: Sun, 21 Mar 2021 22:43:26 +0000
Message-ID: <E1lO6n8-00075z-UW@gemulon.postgresql.org> (raw)
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.
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/ac897c483485d3858ada23ca49650a0f2742a50f
Modified Files
--------------
src/backend/commands/tablecmds.c | 26 ++++++++++++--------------
1 file changed, 12 insertions(+), 14 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tgl@sss.pgh.pa.us
Subject: Re: pgsql: Fix assorted silliness in ATExecSetCompression().
In-Reply-To: <E1lO6n8-00075z-UW@gemulon.postgresql.org>
References: <E1lO6n8-00075z-UW@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox