From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Prajval Poojari <ppoojari@erwin.com>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14545: Unable to retrieve parameter mode 'VARIADIC'
Date: Tue, 14 Feb 2017 18:10:53 -0500
Message-ID: <1159.1487113853@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwaxvr1p7chJd2BGPpkYg0VzL4LVxnpEctLSsMTSaYgvOQ@mail.gmail.com>
References: <20170214191101.6099.36119@wrigleys.postgresql.org>
<CAKFQuwYbuEk_h7NRMmaK=zRP-p+3wYTxX3uWpZy0SV=7eMh=Yw@mail.gmail.com>
<MWHPR19MB11351740E8884BFE7B1A2AE4C2580@MWHPR19MB1135.namprd19.prod.outlook.com>
<CAKFQuwaxvr1p7chJd2BGPpkYg0VzL4LVxnpEctLSsMTSaYgvOQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> I don't have access to an authoritative definition for what the allowed
> values for information_schema.parameters.parameter_mode are.
SQL2011 saith
CONSTRAINT PARAMETER_MODE_CHECK
CHECK (
PARAMETER_MODE IN
( 'IN', 'OUT', 'INOUT' ) ),
> The fact that our "VARIADIC" mode maps to "IN" on the information schema is
> not accidental. The question is whether it is out-of-date.
Not that I can see. SQL doesn't have VARIADIC, so there's no way to
represent that a parameter is variadic within the information_schema.
This is generally true for all sorts of nonstandard features that PG has:
there's just no way to find out about them through the information_schema,
and there isn't going to be because making those views behave in
nonstandard ways would largely defeat the point of having them.
> Is there a reason you don't just use the PostgreSQL catalogs? Are you
> aware of other implementations of information schema that have this level
> of detail?
mysql, at least, feels free to extend the information_schema in
nonstandard ways. Our project policy is that they're doing it wrong.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, ppoojari@erwin.com
Subject: Re: BUG #14545: Unable to retrieve parameter mode 'VARIADIC'
In-Reply-To: <1159.1487113853@sss.pgh.pa.us>
References: <20170214191101.6099.36119@wrigleys.postgresql.org> <CAKFQuwYbuEk_h7NRMmaK=zRP-p+3wYTxX3uWpZy0SV=7eMh=Yw@mail.gmail.com> <MWHPR19MB11351740E8884BFE7B1A2AE4C2580@MWHPR19MB1135.namprd19.prod.outlook.com> <CAKFQuwaxvr1p7chJd2BGPpkYg0VzL4LVxnpEctLSsMTSaYgvOQ@mail.gmail.com> <1159.1487113853@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