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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: function defined (or not), more worries on version 10->14 upgrade
Дата
Msg-id 1653697.1650042859@sss.pgh.pa.us
обсуждение исходный текст
Ответ на function defined (or not), more worries on version 10->14 upgrade  (Rob Sargent <robjsargent@gmail.com>)
Ответы Re: function defined (or not), more worries on version 10->14 upgrade  (Rob Sargent <robjsargent@gmail.com>)
Re: function defined (or not), more worries on version 10->14 upgrade  (Adrian Klaver <adrian.klaver@aklaver.com>)
Список pgsql-general
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



В списке pgsql-general по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: function defined (or not), more worries on version 10->14 upgrade
Следующее
От: Rob Sargent
Дата:
Сообщение: Re: function defined (or not), more worries on version 10->14 upgrade