Re: function defined (or not), more worries on version 10->14 upgrade

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Rob Sargent <robjsargent(at)gmail(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: function defined (or not), more worries on version 10->14 upgrade
Date: 2022-04-15 20:22:07
Message-ID: 44d8ca64-af6a-6ff8-1a6a-e19d8f75885c@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 4/15/22 10:14, Tom Lane wrote:
> Rob Sargent <robjsargent(at)gmail(dot)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.
>

Seems it also has another white space problem:

\df upc_check_digit()
List of functions
Schema | Name | Result data type | Argument data types |
Type
--------+-----------------+-------------------+-----------------------+------
public | upc_check_digit | character varying | upc character varying |
func

\df upc_check_digit ()
List of functions
Schema | Name | Result data type | Argument data types | Type
--------+------+------------------+---------------------+------
(0 rows)

\df upc_check_digit(varchar)
List of functions
Schema | Name | Result data type | Argument data types | Type
--------+------+------------------+---------------------+------
(0 rows)

\df upc_check_digit (varchar)
List of functions
Schema | Name | Result data type | Argument data types |
Type
--------+-----------------+-------------------+-----------------------+------
public | upc_check_digit | character varying | upc character varying |
func
(1 row)

>
> regards, tom lane
>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rob Sargent 2022-04-15 21:04:12 Re: function defined (or not), more worries on version 10->14 upgrade
Previous Message Rob Sargent 2022-04-15 20:01:36 Re: function defined (or not), more worries on version 10->14 upgrade