aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/jsonfuncs.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2017-03-29 09:44:29 -0400
committerRobert Haas <rhaas@postgresql.org>2017-03-29 09:48:39 -0400
commitfddf45b38097d14301d249fbeebca32e40233bd2 (patch)
tree9f8fa462f059b3a18ef02380570084e6b1c18717 /src/backend/utils/adt/jsonfuncs.c
parent3582b223d494cd505c6a22da98bcb49f99196645 (diff)
downloadpostgresql-fddf45b38097d14301d249fbeebca32e40233bd2.tar.gz
postgresql-fddf45b38097d14301d249fbeebca32e40233bd2.zip
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
Diffstat (limited to 'src/backend/utils/adt/jsonfuncs.c')
0 files changed, 0 insertions, 0 deletions