pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix the initialization of atomic variables introduced by the
4+ messages / 1 participants
[nested] [flat]

* pgsql: Fix the initialization of atomic variables introduced by the
@ 2018-11-13 05:40 Amit Kapila <akapila@postgresql.org>
  0 siblings, 0 replies; 4+ messages in thread

From: Amit Kapila @ 2018-11-13 05:40 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* pgsql: Fix the initialization of atomic variables introduced by the
@ 2018-11-13 05:40 Amit Kapila <akapila@postgresql.org>
  0 siblings, 0 replies; 4+ messages in thread

From: Amit Kapila @ 2018-11-13 05:40 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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
------
REL_11_STABLE

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

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



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* pgsql: Fix the initialization of atomic variable introduced by the
@ 2018-11-13 05:40 Amit Kapila <akapila@postgresql.org>
  0 siblings, 0 replies; 4+ messages in thread

From: Amit Kapila @ 2018-11-13 05:40 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Commit 0e141c0fbb introduced initialization of atomic variable in
InitProcess which means that it's not safe to look at it for backends that
aren't currently in use.  Fix that by initializing the same 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
------
REL_10_STABLE

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

Modified Files
--------------
src/backend/storage/lmgr/proc.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* pgsql: Fix the initialization of atomic variable introduced by the
@ 2018-11-13 05:40 Amit Kapila <akapila@postgresql.org>
  0 siblings, 0 replies; 4+ messages in thread

From: Amit Kapila @ 2018-11-13 05:40 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

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

Commit 0e141c0fbb introduced initialization of atomic variable in
InitProcess which means that it's not safe to look at it for backends that
aren't currently in use.  Fix that by initializing the same 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
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/1a8bde490c982cbdd9d174e72d42f6042e9bf4ee

Modified Files
--------------
src/backend/storage/lmgr/proc.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2018-11-13 05:40 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-11-13 05:40 pgsql: Fix the initialization of atomic variables introduced by the Amit Kapila <akapila@postgresql.org>
2018-11-13 05:40 pgsql: Fix the initialization of atomic variables introduced by the Amit Kapila <akapila@postgresql.org>
2018-11-13 05:40 pgsql: Fix the initialization of atomic variable introduced by the Amit Kapila <akapila@postgresql.org>
2018-11-13 05:40 pgsql: Fix the initialization of atomic variable introduced by the Amit Kapila <akapila@postgresql.org>

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