pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix use-after-free bug when renaming constraints
Date: Mon, 17 Dec 2018 03:45:41 +0000
Message-ID: <E1gYjqf-0000pX-HK@gemulon.postgresql.org> (raw)

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.

Branch
------
REL_11_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/e83e0988dc62026dbabad76b206bddea3d4f830e

Modified Files
--------------
src/backend/commands/tablecmds.c          | 4 ++--
src/test/regress/expected/alter_table.out | 2 +-
src/test/regress/sql/alter_table.sql      | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1gYjqf-0000pX-HK@gemulon.postgresql.org>
Permalink:  ../E1gYjqf-0000pX-HK@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gYjqf-0000pX-HK@gemulon.postgresql.org

 · 

reply

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: michael@paquier.xyz
  Subject: Re: pgsql: Fix use-after-free bug when renaming constraints
  In-Reply-To: <E1gYjqf-0000pX-HK@gemulon.postgresql.org>
  References: <E1gYjqf-0000pX-HK@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