Teach bitmap heap scan to cope with absence of a DSA.
authorRobert Haas <rhaas@postgresql.org>
Tue, 28 Nov 2017 16:39:16 +0000 (11:39 -0500)
committerRobert Haas <rhaas@postgresql.org>
Tue, 28 Nov 2017 16:49:01 +0000 (11:49 -0500)
commitec7629dfb98a34cf4e459cf6b27febfd33ae9ad5
treec4625574e9f91d6987d5e86b91ece925c33c4dc4
parent7015bb38949a44849b7a2e6c139700d20d82858b
Teach bitmap heap scan to cope with absence of a DSA.

If we have a plan that uses parallelism but are unable to execute it
using parallelism, for example due to a lack of available DSM
segments, then the EState's es_query_dsa will be NULL.  Parallel
bitmap heap scan needs to fall back to a non-parallel scan in such
cases.

Patch by me, reviewed by Dilip Kumar

Discussion: http://postgr.es/m/CAEepm=0kADK5inNf_KuemjX=HQ=PuTP0DykM--fO5jS5ePVFEA@mail.gmail.com
src/backend/executor/nodeBitmapHeapscan.c