Re: PostgreSQL Bug with simple function unexpectedly treating varchar parameter as an array

Поиск
Список
Период
Сортировка
От Rumpi Gravenstein
Тема Re: PostgreSQL Bug with simple function unexpectedly treating varchar parameter as an array
Дата
Msg-id CAEpg1wCuZ5DgA_oj=pY8BUnsRP_7Lk24xXwjzp-Atw1-Uir-AA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: PostgreSQL Bug with simple function unexpectedly treating varchar parameter as an array  ("David G. Johnston" <david.g.johnston@gmail.com>)
Ответы Re: PostgreSQL Bug with simple function unexpectedly treating varchar parameter as an array
Re: PostgreSQL Bug with simple function unexpectedly treating varchar parameter as an array
Список pgsql-general
That having a table and function with similar names causes this problem is a bug.

Going forward I'll be sure to avoid the problem.

On Wed, Aug 6, 2025 at 5:35 PM David G. Johnston <david.g.johnston@gmail.com> wrote:
On Wednesday, August 6, 2025, Rumpi Gravenstein <rgravens@gmail.com> wrote:
Here's a reproducible test case that causes the problem in different schemas.  The issue appears to be related to creating a table and a function that has the same name as the table with a prepended underscore.

Don’t do that.  Naming a function (action) and table (noun) the same seems unwise anyway, underscores or no.

David J.



--
Rumpi Gravenstein

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