Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nm0uJ-0003wW-BP for pgsql-general@arkaria.postgresql.org; Tue, 03 May 2022 22:22:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nm0uI-0001Eb-7i for pgsql-general@arkaria.postgresql.org; Tue, 03 May 2022 22:22:10 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nm0uH-0001ES-TB for pgsql-general@lists.postgresql.org; Tue, 03 May 2022 22:22:09 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nm0uF-0005PO-Io for pgsql-general@lists.postgresql.org; Tue, 03 May 2022 22:22:08 +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 243MM6tp2234968; Tue, 3 May 2022 18:22:06 -0400 From: Tom Lane To: Bryn Llewellyn cc: pgsql-general list Subject: Re: Meaning of "constant" not honored when the variable is used as the actual for a proc's OUT formal paameter In-reply-to: References: Comments: In-reply-to Bryn Llewellyn message dated "Tue, 03 May 2022 15:03:32 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2234966.1651616526.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Tue, 03 May 2022 18:22:06 -0400 Message-ID: <2234967.1651616526@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Bryn Llewellyn writes: > The DO block runs without error and reports "INFO: 42". This is an unam= biguous semantic error because "a" is declared "constant". > Is this a known issue? It is, see https://git.postgresql.org/gitweb/?p=3Dpostgresql.git&a=3Dcommitdiff&h=3Dc= cd10a9bf regards, tom lane