Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nfU5m-0005hK-JO for pgsql-general@arkaria.postgresql.org; Fri, 15 Apr 2022 22:07:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nfU5l-0002Zp-Fk for pgsql-general@arkaria.postgresql.org; Fri, 15 Apr 2022 22:07:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nfU5l-0002Zf-4s for pgsql-general@lists.postgresql.org; Fri, 15 Apr 2022 22:07:01 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nfU5j-00058r-Qh for pgsql-general@postgresql.org; Fri, 15 Apr 2022 22:07:00 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 23FM6t0g1803633; Fri, 15 Apr 2022 18:06:55 -0400 From: Tom Lane To: "David G. Johnston" cc: Rob Sargent , Adrian Klaver , "pgsql-general@postgresql.org" Subject: Re: function defined (or not), more worries on version 10->14 upgrade In-reply-to: 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> Comments: In-reply-to "David G. Johnston" message dated "Fri, 15 Apr 2022 14:24:07 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1803631.1650060415.1@sss.pgh.pa.us> Date: Fri, 15 Apr 2022 18:06:55 -0400 Message-ID: <1803632.1650060415@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "David G. Johnston" writes: > On Fri, Apr 15, 2022 at 2:20 PM Tom Lane 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