pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix incorrect code in new REINDEX CONCURRENTLY code
Date: Fri, 29 Mar 2019 10:19:52 +0000
Message-ID: <E1h9oc4-0000yu-Ry@gemulon.postgresql.org> (raw)

Fix incorrect code in new REINDEX CONCURRENTLY code

The previous code was adding pointers to transient variables to a
list, but by the time the list was read, the variable might be gone,
depending on the compiler.  Fix it by making copies in the proper
memory context.

Branch
------
master

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

Modified Files
--------------
src/backend/commands/indexcmds.c | 28 ++++++++++++++++------------
1 file changed, 16 insertions(+), 12 deletions(-)



Message-ID: <E1h9oc4-0000yu-Ry@gemulon.postgresql.org>
Permalink:  ../E1h9oc4-0000yu-Ry@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1h9oc4-0000yu-Ry@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: peter@eisentraut.org
  Subject: Re: pgsql: Fix incorrect code in new REINDEX CONCURRENTLY code
  In-Reply-To: <E1h9oc4-0000yu-Ry@gemulon.postgresql.org>
  References: <E1h9oc4-0000yu-Ry@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