postgresql/src/backend/access
Robert Haas 445dbd82a3 Fix ReinitializeParallelDSM to tolerate finding no error queues.
Commit d466335064 changed things so
that shm_toc_lookup would fail with an error rather than silently
returning NULL in the hope that such failures would be reported
in a useful way rather than via a system crash.  However, it
overlooked the fact that the lookup of PARALLEL_KEY_ERROR_QUEUE
in ReinitializeParallelDSM is expected to fail when no DSM segment
was created in the first place; in that case, we end up with a
backend-private memory segment that still contains an entry for
PARALLEL_KEY_FIXED but no others.  Consequently a benign failure
to initialize parallelism can escalate into an elog(ERROR);
repair.

Discussion: http://postgr.es/m/CA+Tgmob8LFw55DzH1QEREpBEA9RJ_W_amhBFCVZ6WMwUhVpOqg@mail.gmail.com
2017-11-28 12:15:38 -05:00
..
brin Change TRUE/FALSE to true/false 2017-11-08 11:37:28 -05:00
common Parameter toast_tuple_target controls TOAST for new rows 2017-11-20 09:50:10 +11:00
gin Fix broken cleanup interlock for GIN pending list. 2017-11-16 14:19:27 -05:00
gist Add some const decorations to prototypes 2017-11-10 13:38:57 -05:00
hash Change TRUE/FALSE to true/false 2017-11-08 11:37:28 -05:00
heap Parameter toast_tuple_target controls TOAST for new rows 2017-11-20 09:50:10 +11:00
index Change TRUE/FALSE to true/false 2017-11-08 11:37:28 -05:00
nbtree Change TRUE/FALSE to true/false 2017-11-08 11:37:28 -05:00
rmgrdesc Remove dedicated B-tree root-split record types. 2017-08-16 12:24:40 +03:00
spgist Change TRUE/FALSE to true/false 2017-11-08 11:37:28 -05:00
tablesample Update copyright via script for 2017 2017-01-03 13:48:53 -05:00
transam Fix ReinitializeParallelDSM to tolerate finding no error queues. 2017-11-28 12:15:38 -05:00
Makefile TABLESAMPLE, SQL Standard and extensible 2015-05-15 14:37:10 -04:00