From: Alexander Korotkov <akorotkov@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Mark multirange_constructor0() and multirange_constructor2() str
Date: Fri, 23 Apr 2021 10:26:23 +0000
Message-ID: <E1lZt0x-0003Dv-3c@gemulon.postgresql.org> (raw)
Mark multirange_constructor0() and multirange_constructor2() strict
These functions shouldn't receive null arguments: multirange_constructor0()
doesn't have any arguments while multirange_constructor2() has a single array
argument, which is never null.
But mark them strict anyway for the sake of uniformity.
Also, make checks for null arguments use elog() instead of ereport() as these
errors should normally be never thrown. And adjust corresponding comments.
Catversion is bumped.
Reported-by: Peter Eisentraut
Discussion: https://postgr.es/m/0f783a96-8d67-9e71-996b-f34a7352eeef%40enterprisedb.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/6bbcff096f932a1fe43ac3208c5c8b0acac29cda
Modified Files
--------------
src/backend/commands/typecmds.c | 4 ++--
src/backend/utils/adt/multirangetypes.c | 25 +++++++++++++------------
src/include/catalog/catversion.h | 2 +-
src/include/catalog/pg_proc.dat | 24 ++++++++++++------------
4 files changed, 28 insertions(+), 27 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: Mark multirange_constructor0() and multirange_constructor2() str
In-Reply-To: <E1lZt0x-0003Dv-3c@gemulon.postgresql.org>
References: <E1lZt0x-0003Dv-3c@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