Improve the signature of internal multirange functions

Alexander Korotkov <akorotkov@postgresql.org>

Commit: d1d61a8b23b604faf797695eeacaa5da4fe64762
Author: Alexander Korotkov <akorotkov@postgresql.org>
Date: 2020-12-29T20:35:38Z
Releases: 14.0
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.

Files

PathChange+/−
src/backend/utils/adt/multirangetypes.c modified +111 −95
src/include/utils/multirangetypes.h modified +42 −27