pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Amit Kapila <akapila@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Fix the initialization of atomic variables introduced by the
Date: Tue, 13 Nov 2018 05:40:55 +0000
Message-ID: <E1gMRRX-0000Jr-Ge@gemulon.postgresql.org> (raw)

Fix the initialization of atomic variables introduced by the
group clearing mechanism.

Commits 0e141c0fbb and baaf272ac9 introduced initialization of atomic
variables in InitProcess which means that it's not safe to look at those
for backends that aren't currently in use.  Fix that by initializing them
during postmaster startup.

Reported-by: Andres Freund
Author: Amit Kapila
Backpatch-through: 9.6
Discussion: https://postgr.es/m/20181027104138.qmbbelopvy7cw2qv@alap3.anarazel.de

Branch
------
master

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

Modified Files
--------------
src/backend/storage/lmgr/proc.c | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)



view thread (4+ messages)  latest in thread

Message-ID: <E1gMRRX-0000Jr-Ge@gemulon.postgresql.org>
Permalink:  ../E1gMRRX-0000Jr-Ge@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1gMRRX-0000Jr-Ge@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: akapila@postgresql.org
  Subject: Re: pgsql: Fix the initialization of atomic variables introduced by the
  In-Reply-To: <E1gMRRX-0000Jr-Ge@gemulon.postgresql.org>
  References: <E1gMRRX-0000Jr-Ge@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