From: | Robert Haas <rhaas(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Plug race in dsa_attach. |
Date: | 2017-03-29 14:49:20 |
Message-ID: | E1ctEuW-0002hZ-Jz@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Plug race in dsa_attach.
With sufficiently bad luck, it was possible for a parallel worker to
attempt attach to a DSA area after all other backends have detached
from it, which is not legal. If the worker had waited a little longer
to get started, the DSM itself would have been destroyed, which is why
this wasn't noticed before.
Thomas Munro, per a report from Andreas Seltenreich
Discussion: http://postgr.es/m/87h92g83t3.fsf@credativ.de
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/fddf45b38097d14301d249fbeebca32e40233bd2
Modified Files
--------------
src/backend/utils/mmgr/dsa.c | 7 +++++++
1 file changed, 7 insertions(+)
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2017-03-29 15:04:54 | pgsql: Mark more functions parallel-restricted. |
Previous Message | Peter Eisentraut | 2017-03-29 12:56:06 | pgsql: Fix hardcoded typeof check result for Windows |