Fix parallel index and index-only scans to fall back to serial.
authorRobert Haas <rhaas@postgresql.org>
Wed, 8 Mar 2017 13:15:24 +0000 (08:15 -0500)
committerRobert Haas <rhaas@postgresql.org>
Wed, 8 Mar 2017 13:15:24 +0000 (08:15 -0500)
commit09529a70bb5a77935d086d651c63396767d240d7
tree6413df5b74055c6fd5a0f2ffd1bfce3a09f91b8b
parent98e6e89040a0534ca26914c66cae9dd49ef62ad9
Fix parallel index and index-only scans to fall back to serial.

Parallel executor nodes can't assume that parallel execution will
happen in every case where the plan calls for it, because it might
not work out that way.  However, parallel index scan and parallel
index-only scan failed to do the right thing here.  Repair.

Amit Kapila, per a report from me.

Discussion: http://postgr.es/m/CAA4eK1Kq5qb_u2AOoda5XBB91vVWz90w=LgtRLgsssriS8pVTw@mail.gmail.com
src/backend/executor/nodeIndexonlyscan.c
src/backend/executor/nodeIndexscan.c