pgsql: Minor GIN code refactoring. - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Minor GIN code refactoring.
Date
Msg-id E1VRegH-0007cC-CX@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Minor GIN code refactoring.

It makes for cleaner code to have separate Get/Add functions for PostingItems
and ItemPointers.  A few callsites that have to deal with both types need to
be duplicated because of this, but all the callers have to know which one
they're dealing with anyway. Overall, this reduces the amount of casting
required.

Extracted from Alexander Korotkov's larger patch to change the data page
format.

Branch
------
master

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

Modified Files
--------------
src/backend/access/gin/gindatapage.c |  121 ++++++++++++++++++++++++----------
src/backend/access/gin/ginget.c      |   12 ++--
src/backend/access/gin/ginvacuum.c   |    6 +-
src/backend/access/gin/ginxlog.c     |   28 ++++----
src/include/access/gin_private.h     |   11 +++-
5 files changed, 123 insertions(+), 55 deletions(-)


pgsql-committers by date:

Previous
From: Peter Eisentraut
Date:
Subject: pgsql: doc: Correct psycopg URL
Next
From: Robert Haas
Date:
Subject: pgsql: psql: Make \pset without arguments show all settings.