pgsql: Cosmetic cleanup of ginInsertValue(). - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Cosmetic cleanup of ginInsertValue().
Date
Msg-id E1SphwC-0002vF-32@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Cosmetic cleanup of ginInsertValue().

Make it clearer that the passed stack mustn't be empty, and that we
are not supposed to fall off the end of the stack in the main loop.
Tighten the loop that extracts the root block number, too.

Markus Wanner and Tom Lane

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/1a9405d26537c6d95269bf48f5ea80fbf7967260

Modified Files
--------------
src/backend/access/gin/ginbtree.c |   20 +++++++++++---------
1 files changed, 11 insertions(+), 9 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: Avoid extra newlines in XML mapping in table forest mode
Next
From: Tom Lane
Date:
Subject: pgsql: Add fsync capability to initdb, and use sync_file_range() if ava