pgsql: Improve coding in _hash_addovflpage.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Improve coding in _hash_addovflpage.
Date: 2017-01-10 13:37:21
Message-ID: E1cQwc5-0007he-Cc@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Improve coding in _hash_addovflpage.

Instead of relying on the page contents to know whether we have
advanced from the primary bucket page to an overflow page, track
that explicitly.

Amit Kapila, per a complaint by me.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/e898437460f55b49623d1aea435cd92e0011d54d

Modified Files
--------------
src/backend/access/hash/hashovfl.c | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alvaro Herrera 2017-01-10 14:42:56 pgsql: Fix overflow check in StringInfo; add missing casts
Previous Message Stephen Frost 2017-01-10 04:10:37 pgsql: Fix invalid-parallel-jobs error message