pgsql: Fix failure when a shared tidbitmap has only one page.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix failure when a shared tidbitmap has only one page.
Date: 2017-04-11 16:09:14
Message-ID: E1cxyLy-0005Vo-T8@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/4c3b59abf4c476843bca23de7fb66d647627f30e

Modified Files
--------------
src/backend/nodes/tidbitmap.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian 2017-04-11 16:14:11 pgsql: doc: clearify pg_upgrade default copy behavior
Previous Message Tom Lane 2017-04-11 15:59:20 pgsql: Handle restriction clause lists more uniformly in postgres_fdw.