pgsql: Improve the signature of internal multirange functions

From: Alexander Korotkov <akorotkov(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Improve the signature of internal multirange functions
Date: 2020-12-29 20:45:42
Message-ID: E1kuLsE-0000pz-Q4@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: 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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Alexander Korotkov 2020-12-29 20:53:14 Re: pgsql: Add support of multirange matching to the existing range GiST in
Previous Message Michael Paquier 2020-12-29 09:21:31 pgsql: doc: Improve some grammar and sentences