Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cdmFR-0006iP-86 for pgsql-bugs@arkaria.postgresql.org; Tue, 14 Feb 2017 23:11:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cdmFQ-0007jy-Re for pgsql-bugs@arkaria.postgresql.org; Tue, 14 Feb 2017 23:11:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cdmFQ-0007js-Hs for pgsql-bugs@postgresql.org; Tue, 14 Feb 2017 23:11:00 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1cdmFO-0002MH-KJ for pgsql-bugs@postgresql.org; Tue, 14 Feb 2017 23:11:00 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id v1ENArkn001160; Tue, 14 Feb 2017 18:10:53 -0500 From: Tom Lane To: "David G. Johnston" cc: Prajval Poojari , "pgsql-bugs@postgresql.org" Subject: Re: BUG #14545: Unable to retrieve parameter mode 'VARIADIC' In-reply-to: References: <20170214191101.6099.36119@wrigleys.postgresql.org> Comments: In-reply-to "David G. Johnston" message dated "Tue, 14 Feb 2017 15:43:48 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <1158.1487113853.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Tue, 14 Feb 2017 18:10:53 -0500 Message-ID: <1159.1487113853@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org "David G. Johnston" 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