Re: PostgreSQL Bug with simple function unexpectedly treating varchar parameter as an array - Mailing list pgsql-general

From David G. Johnston
Subject Re: PostgreSQL Bug with simple function unexpectedly treating varchar parameter as an array
Date
Msg-id CAKFQuwbU+xEmPdPvnvknz==yX5xLG5DuAxJASnPEcb73+WMATg@mail.gmail.com
Whole thread Raw
In response to Re: PostgreSQL Bug with simple function unexpectedly treating varchar parameter as an array  (Rumpi Gravenstein <rgravens@gmail.com>)
Responses 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
List pgsql-general
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.

pgsql-general by date:

Previous
From: Rumpi Gravenstein
Date:
Subject: Re: PostgreSQL Bug with simple function unexpectedly treating varchar parameter as an array
Next
From: Rumpi Gravenstein
Date:
Subject: Re: PostgreSQL Bug with simple function unexpectedly treating varchar parameter as an array