Fix failure when a shared tidbitmap has only one page.

Robert Haas <rhaas@postgresql.org>

Commit: 4c3b59abf4c476843bca23de7fb66d647627f30e
Author: Robert Haas <rhaas@postgresql.org>
Date: 2017-04-11T16:06:01Z
Releases: 10.0
Fix failure when a shared tidbitmap has only one page.

Commit 98e6e89040a0534ca26914c66cae9dd49ef62ad9 made inadequate
provision for the case of a single-page shared tidbitmap.  It
allocate space for a shared PagetableEntry, but failed to
initialize it.

Report by Thomas Munro.  Patch by Dilip Kumar, with some comment
changes by me.

Discussion: http://postgr.es/m/CAEepm=19Cmnfbi-j2Bw-a6yGPeHE1OVhKvvKz9bRBTJGKfGHMA@mail.gmail.com

Files

PathChange+/−
src/backend/nodes/tidbitmap.c modified +4 −2

Discussion