aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeModifyTable.c
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2016-09-20 12:04:41 -0400
committerRobert Haas <rhaas@postgresql.org>2016-09-20 12:12:27 -0400
commit6bcd26c43c4f0ef718e984643338ddd5b207f9f9 (patch)
treeca0c9ca724739199fdf5472c55ba4d9e4acbe038 /src/backend/executor/nodeModifyTable.c
parentfd94ac501f11a747093e0fa5af8514af7408dbc3 (diff)
downloadpostgresql-6bcd26c43c4f0ef718e984643338ddd5b207f9f9.tar.gz
postgresql-6bcd26c43c4f0ef718e984643338ddd5b207f9f9.zip
Retry DSM control segment creation if Windows indicates access denied.
Otherwise, attempts to run multiple postmasters running on the same machine may fail, because Windows sometimes returns ERROR_ACCESS_DENIED rather than ERROR_ALREADY_EXISTS when there is an existing segment. Hitting this bug is much more likely because of another defect not fixed by this patch, namely that dsm_postmaster_startup() uses random() which returns the same value every time. But that's not a reason not to fix this. Kyotaro Horiguchi and Amit Kapila, reviewed by Michael Paquier Discussion: <CAA4eK1JyNdMeF-dgrpHozDecpDfsRZUtpCi+1AbtuEkfG3YooQ@mail.gmail.com>
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions