From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Have LookupFuncName accept NULL argtypes for 0 args
Date: Tue, 12 Nov 2019 20:07:30 +0000
Message-ID: <E1iUcRm-0005Vo-Lx@gemulon.postgresql.org> (raw)
Have LookupFuncName accept NULL argtypes for 0 args
Prior to this change, it requires to be passed a valid pointer just to
be able to pass it to a zero-byte memcmp, per 0a52d378b03b. Given the
strange resulting code in callsites, it seems better to test for the
case specifically and remove the requirement.
Reported-by: Ranier Vilela
Discussion: https://postgr.es/m/MN2PR18MB2927F24692485D754794F01BE3740@MN2PR18MB2927.namprd18.prod.outlook.com
Discussion: https://postgr.es/m/MN2PR18MB2927F6873DF2774A505AC298E3740@MN2PR18MB2927.namprd18.prod.outlook.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/dcb7d3cafa3197c5425c129ba0dc5eddd23c0532
Modified Files
--------------
src/backend/commands/event_trigger.c | 3 +--
src/backend/commands/foreigncmds.c | 3 +--
src/backend/commands/proclang.c | 4 ++--
src/backend/commands/trigger.c | 3 +--
src/backend/parser/parse_func.c | 8 +++++---
src/pl/tcl/pltcl.c | 3 +--
6 files changed, 11 insertions(+), 13 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: alvherre@alvh.no-ip.org
Subject: Re: pgsql: Have LookupFuncName accept NULL argtypes for 0 args
In-Reply-To: <E1iUcRm-0005Vo-Lx@gemulon.postgresql.org>
References: <E1iUcRm-0005Vo-Lx@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