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 1nfPWb-0005UH-V2 for pgsql-general@arkaria.postgresql.org; Fri, 15 Apr 2022 17:14:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nfPWa-0002Cr-Qo for pgsql-general@arkaria.postgresql.org; Fri, 15 Apr 2022 17:14:24 +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 1nfPWa-0002Ci-Fr for pgsql-general@lists.postgresql.org; Fri, 15 Apr 2022 17:14:24 +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 1nfPWY-0002kK-FJ for pgsql-general@postgresql.org; Fri, 15 Apr 2022 17:14:24 +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 23FHEJ1M1653698; Fri, 15 Apr 2022 13:14:19 -0400 From: Tom Lane To: Rob Sargent cc: "pgsql-general@postgresql.org" Subject: Re: function defined (or not), more worries on version 10->14 upgrade In-reply-to: <1c00b419-2507-f018-3579-2529ed8d6de5@gmail.com> References: <1c00b419-2507-f018-3579-2529ed8d6de5@gmail.com> Comments: In-reply-to Rob Sargent message dated "Fri, 15 Apr 2022 10:53:59 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1653696.1650042859.1@sss.pgh.pa.us> Date: Fri, 15 Apr 2022 13:14:19 -0400 Message-ID: <1653697.1650042859@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Rob Sargent writes: > The function in question is working but I'm having trouble getting at > it's current definition and the possibility that there are more v10->v14 > issues in this database. The last ERROR: below seems to me "a system > thing"(tm) Hmm, it looks like \df does not cope well with spaces in the argument list: regression=# \df genome_threshold_mono(text,text,double) List of functions Schema | Name | Result data type | Argument data types | Type --------+------+------------------+---------------------+------ (0 rows) regression=# \df genome_threshold_mono(text,text, double) ERROR: invalid regular expression: parentheses () not balanced It's sending the server a bogus pattern in the second case. I've not looked at the code yet, but this does seem like a psql (not server) bug. As Adrian noted, you're not supposed to use parameter names in \df, only their types. It seems like whitespace ought to be allowed though. regards, tom lane