pgsql: Fix incorrect code in new REINDEX CONCURRENTLY code

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Fix incorrect code in new REINDEX CONCURRENTLY code
Date: 2019-03-29 10:19:52
Message-ID: E1h9oc4-0000yu-Ry@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Michael Paquier 2019-03-29 11:51:38 Re: pgsql: Improve autovacuum logging for aggressive and anti-wraparound ru
Previous Message Simon Riggs 2019-03-29 09:37:11 Re: pgsql: Compute XID horizon for page level index vacuum on primary.