pgsql: Improve the signature of internal multirange functions - Mailing list pgsql-committers

From Alexander Korotkov
Subject pgsql: Improve the signature of internal multirange functions
Date
Msg-id E1kuLsE-0000pz-Q4@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Improve the signature of internal multirange functions

There is a set of *_internal() functions exposed in
include/utils/multirangetypes.h.  This commit improves the signatures of these
functions in two ways.
 * Add const qualifies where applicable.
 * Replace multirange typecache argument with range typecache argument.
   Multirange typecache was used solely to find the range typecache.  At the
   same time, range typecache is easier for the caller to find.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d1d61a8b23b604faf797695eeacaa5da4fe64762

Modified Files
--------------
src/backend/utils/adt/multirangetypes.c | 206 +++++++++++++++++---------------
src/include/utils/multirangetypes.h     |  69 ++++++-----
2 files changed, 153 insertions(+), 122 deletions(-)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: doc: Improve some grammar and sentences
Next
From: Alexander Korotkov
Date:
Subject: Re: pgsql: Add support of multirange matching to the existing range GiST in