From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Improve the signature of internal multirange functions
Date: Tue, 29 Dec 2020 20:45:42 +0000
Message-ID: <E1kuLsE-0000pz-Q4@gemulon.postgresql.org> (raw)
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(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: akorotkov@postgresql.org
Subject: Re: pgsql: Improve the signature of internal multirange functions
In-Reply-To: <E1kuLsE-0000pz-Q4@gemulon.postgresql.org>
References: <E1kuLsE-0000pz-Q4@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox