From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Rob Sargent <robjsargent@gmail.com>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: Re: function defined (or not), more worries on version 10->14 upgrade
Date: Fri, 15 Apr 2022 18:06:55 -0400
Message-ID: <1803632.1650060415@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwYyhSQ764tT8cm8HkFeuEsN6d+La=S-wnKFAeZEMWVrmw@mail.gmail.com>
References: <1c00b419-2507-f018-3579-2529ed8d6de5@gmail.com>
<1653697.1650042859@sss.pgh.pa.us>
<44d8ca64-af6a-6ff8-1a6a-e19d8f75885c@aklaver.com>
<4100be2d-7fa3-8aec-2a49-7702b7249581@gmail.com>
<1799103.1650057624@sss.pgh.pa.us>
<CAKFQuwYyhSQ764tT8cm8HkFeuEsN6d+La=S-wnKFAeZEMWVrmw@mail.gmail.com>
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Fri, Apr 15, 2022 at 2:20 PM Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> While I've not yet looked at the code, I've got no reason to think
>> this is anything except fragile argument parsing in \df and \sf.
> I'm unsure about the "extra argument ignored" bit but the rest of "not
> found" issues are due to operator error; specifying a pattern that tries to
> match the name and arguments at the same time when that isn't how the
> meta-command is defined to be used.
Ah, right, and indeed the code is just parsing off space-separated
arguments one at a time. It's unfortunate that this is done so
much differently from \sf.
One could imagine, perhaps, checking for parentheses in the arguments
and parsing differently depending on whether they're there. But that's
getting into the realm of a new definition rather than a bug fix.
regards, tom lane
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-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, robjsargent@gmail.com, adrian.klaver@aklaver.com
Subject: Re: function defined (or not), more worries on version 10->14 upgrade
In-Reply-To: <1803632.1650060415@sss.pgh.pa.us>
References: <1c00b419-2507-f018-3579-2529ed8d6de5@gmail.com> <1653697.1650042859@sss.pgh.pa.us> <44d8ca64-af6a-6ff8-1a6a-e19d8f75885c@aklaver.com> <4100be2d-7fa3-8aec-2a49-7702b7249581@gmail.com> <1799103.1650057624@sss.pgh.pa.us> <CAKFQuwYyhSQ764tT8cm8HkFeuEsN6d+La=S-wnKFAeZEMWVrmw@mail.gmail.com> <1803632.1650060415@sss.pgh.pa.us>
* 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