Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ufMYp-006DK4-Nr for pgsql-general@arkaria.postgresql.org; Fri, 25 Jul 2025 17:50:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1ufMYo-003Tw6-QQ for pgsql-general@arkaria.postgresql.org; Fri, 25 Jul 2025 17:50:23 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ufMYo-003Tvy-Fg for pgsql-general@lists.postgresql.org; Fri, 25 Jul 2025 17:50:22 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1ufMYm-000kwX-31 for pgsql-general@lists.postgresql.org; Fri, 25 Jul 2025 17:50:21 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 56PHoJaJ1940681; Fri, 25 Jul 2025 13:50:19 -0400 From: Tom Lane To: Rumpi Gravenstein cc: PostgreSQL Subject: Re: PostgreSQL Bug with simple function unexpectedly treating varchar parameter as an array In-reply-to: References: <1934172.1753462470@sss.pgh.pa.us> <1936547.1753463422@sss.pgh.pa.us> Comments: In-reply-to Rumpi Gravenstein message dated "Fri, 25 Jul 2025 13:18:07 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1940679.1753465819.1@sss.pgh.pa.us> Date: Fri, 25 Jul 2025 13:50:19 -0400 Message-ID: <1940680.1753465819@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Rumpi Gravenstein writes: > Our databases are deployed with automation tools. They should all be > created the same. They all have the same 17 extensions. I've asked a DBA > to confirm. Well, there's got to be *something* different about that database. > This issue only appears in the function I have listed. A similar function, > same contents and parameter but with a different name, works the way I > would expect. That sure seems like evidence in favor of the similarly-named-function idea. But I don't see how the DROP FUNCTION wouldn't have failed if there were two, nor why we wouldn't see it in \df. regards, tom lane