pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Rob Sargent <robjsargent@gmail.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 13:14:19 -0400
Message-ID: <1653697.1650042859@sss.pgh.pa.us> (raw)
In-Reply-To: <1c00b419-2507-f018-3579-2529ed8d6de5@gmail.com>
References: <1c00b419-2507-f018-3579-2529ed8d6de5@gmail.com>

Rob Sargent <robjsargent@gmail.com> 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





view thread (16+ messages)  latest in thread

Message-ID: <1653697.1650042859@sss.pgh.pa.us>
Permalink:  ../1653697.1650042859@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1653697.1650042859@sss.pgh.pa.us

 · 

reply

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, robjsargent@gmail.com
  Subject: Re: function defined (or not), more worries on version 10->14 upgrade
  In-Reply-To: <1653697.1650042859@sss.pgh.pa.us>
  References: <1c00b419-2507-f018-3579-2529ed8d6de5@gmail.com> <1653697.1650042859@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