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 1sDTKv-00D1Hb-QZ for pgsql-hackers@arkaria.postgresql.org; Sat, 01 Jun 2024 18:20:15 +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 1sDTJv-003kbV-LS for pgsql-hackers@arkaria.postgresql.org; Sat, 01 Jun 2024 18:19:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sDTJv-003kXT-Aw for pgsql-hackers@lists.postgresql.org; Sat, 01 Jun 2024 18:19:11 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sDTJn-001rkH-5M for pgsql-hackers@lists.postgresql.org; Sat, 01 Jun 2024 18:19:09 +0000 Received: from pro.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 451IIxr32160205; Sat, 1 Jun 2024 14:19:01 -0400 From: Tom Lane To: "a.kozhemyakin" cc: pgsql-hackers@lists.postgresql.org Subject: Re: pltcl crashes due to a syntax error In-reply-to: <6a2a1c40-2b2c-4a33-8b72-243c0766fcda@postgrespro.ru> References: <6a2a1c40-2b2c-4a33-8b72-243c0766fcda@postgrespro.ru> Comments: In-reply-to "a.kozhemyakin" message dated "Sat, 01 Jun 2024 11:36:18 +0700" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <6101.1717265939.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Sat, 01 Jun 2024 11:18:59 -0700 Message-ID: <6102.1717265939@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "a.kozhemyakin" writes: > When executing the following query on master branch: > CREATE EXTENSION pltcl; > CREATE or replace PROCEDURE test_proc5(INOUT a text) >         LANGUAGE pltcl >         AS $$ >         set aa [concat $1 "+" $1] >         return [list $aa $aa]) >         $$; > CALL test_proc5('abc'); > CREATE EXTENSION > CREATE PROCEDURE > server closed the connection unexpectedly Replicated here. I'll look into it later if nobody beats me to it. Thanks for the report! regards, tom lane