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 1ujlnF-00BnlF-AF for pgsql-general@arkaria.postgresql.org; Wed, 06 Aug 2025 21:35:29 +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 1ujlnE-001KkU-5t for pgsql-general@arkaria.postgresql.org; Wed, 06 Aug 2025 21:35:28 +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 1ujlnD-001KkJ-Qi for pgsql-general@lists.postgresql.org; Wed, 06 Aug 2025 21:35:27 +0000 Received: from mail-oo1-xc31.google.com ([2607:f8b0:4864:20::c31]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1ujlnB-0016vV-17 for pgsql-general@lists.postgresql.org; Wed, 06 Aug 2025 21:35:26 +0000 Received: by mail-oo1-xc31.google.com with SMTP id 006d021491bc7-6195f7f9ad6so127849eaf.3 for ; Wed, 06 Aug 2025 14:35:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1754516125; x=1755120925; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=uypizdW/dw16thC+c8Ox+iXgWB8+4Mwah4IwZgOOP3w=; b=bew4/Z9CYH56x95c9tcVVzdUDbIjNB7Ok1XyuGIeEiR2HoI3uscq82RBb0jbiwupbt I/CD8RpvWAUgck69Rj7tkUkyz6S50h0Pom0pMNh4YxSxlc0RZVeULBYJH1V3qRPVE8nU bTS00bdOCbezeTDRXCamPhifw4SC4zDcEoziBXvRtbwmKIKe66AdUhhgkccxS/tQkJak 9muEa1Ar5TdqJUZ5CvMRp89mM6U2Wmv66i0R67Eo9F3hPR5TeIKSTngXiyEHag4L0mOd XDgZhkM4+0Buypa/DMVxF2crEebqswoDnSrcMV+azpNLXFShcBVDFTLYSVSoDk2nmhKM lxAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1754516125; x=1755120925; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uypizdW/dw16thC+c8Ox+iXgWB8+4Mwah4IwZgOOP3w=; b=KUBWVMpwa17jdpWPIxwb3LOgN0mOOI3T9/7HE3pXTDFvWh6CXNDB/y1Y82dlo/G4tr Cdu+/d58SuKunnkwWZEobu/ia4LgYLtApJYBinMAW1UOwTFWYzGpxYdHl9XqtRrVnI1c b6wFpSCV2e5EsbghQv1uR62xCvSOneEAnvvAuSITHq8pm7fJZCbQgGAIj9a6ejbTlxfC R9WvQU+fvWXiMtUUsuymMBZ2t9T7azZ5+3QX1z/QDz+7tXU5VR7SRePhLxny687sXCYV MKsP5LIpGNDCEY8e8lhsuA6soyxyu9Y2cnB7Fdl3KIcedab/bxvOXJYeNQhP48LYhy/m Tc/A== X-Forwarded-Encrypted: i=1; AJvYcCVk4AoroPrRm/nInOpv0RPYi/G9RLeuJT2060uJuv0jQDZeNr+70opiZboFPuGHBtM4pLkxH5rATOJOA7Su@lists.postgresql.org X-Gm-Message-State: AOJu0YwrwdqfowTRBuwI16Tv0rcxkDWI5ptNwEdkHs9qwjbSDDxTUkBy hmxpdf6s42fvSM5cxLPsTzM20MJhQ0vd+2zzU4AWBnwIn1/2ViRIFp5HyMxLM3MTAKmKpCrB9B1 6fDxFy6xlJNrXiulStB4gBFN2tqUVbFy0PRM/ X-Gm-Gg: ASbGncsOnvsol4SILtEvC+BCHjHbY6mn5aRy8LHvLnybyudC8hbsYgpM7KM6n8pC4qF Gg88bsgEspMKfmeZjNygbM4OgsNhv0mXRZEG7gh2TtcHsBcvTW2ji6uW3KQtI/RJAP8EhgNdqpL BpayBq/iry82yw9Fwz1IlPjTVeDZ7gAK8XZkY3rHLZdMtrhwUwJeJkhaEilLThLPwX3VHm8VTxr bzFMeU6XLxHY5zeEoYolFRYKWYhHtNptBoxewbh X-Google-Smtp-Source: AGHT+IGFCYgRpOabX1EupxQfYuWqwLpILF7MXBHp6B7FHeic1OxEpA9xSL7F+6KOnLxY54Y+LzSph+4XSHxXT3Znhzs= X-Received: by 2002:a05:6820:1392:b0:619:950f:1d56 with SMTP id 006d021491bc7-61b5f217291mr3060182eaf.2.1754516125527; Wed, 06 Aug 2025 14:35:25 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a05:6802:3c0c:b0:5dc:d940:7893 with HTTP; Wed, 6 Aug 2025 14:35:24 -0700 (PDT) In-Reply-To: References: <1934172.1753462470@sss.pgh.pa.us> <1936547.1753463422@sss.pgh.pa.us> <1940680.1753465819@sss.pgh.pa.us> <1943137.1753467040@sss.pgh.pa.us> <2223785.1753476729@sss.pgh.pa.us> From: "David G. Johnston" Date: Wed, 6 Aug 2025 14:35:24 -0700 X-Gm-Features: Ac12FXydDwx-Pmg3gGd0fkkI3SaJzVs6TY-kOq0Gha4bCX8BhdfeQW5o5x6n4Io Message-ID: Subject: Re: PostgreSQL Bug with simple function unexpectedly treating varchar parameter as an array To: Rumpi Gravenstein Cc: Tom Lane , Laurenz Albe , PostgreSQL Content-Type: multipart/alternative; boundary="0000000000006a310f063bb91ef2" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000006a310f063bb91ef2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wednesday, August 6, 2025, Rumpi Gravenstein 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=E2=80=99t do that. Naming a function (action) and table (noun) the sam= e seems unwise anyway, underscores or no. David J. --0000000000006a310f063bb91ef2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wednesday, August 6, 2025, Rumpi Gravenstein <rgravens@gmail.com> wrote:
Here's a reproducible=C2=A0test case that caus= es the problem=C2=A0in different schemas.=C2=A0 The issue appears to be rel= ated to creating a table and a function that has the same name as the table= with a prepended underscore.

Don=E2= =80=99t do that.=C2=A0 Naming a function (action) and table (noun) the same= seems unwise anyway, underscores or no.

David J.<= /div>

--0000000000006a310f063bb91ef2--