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 1teuM2-00GJLU-By for pgsql-bugs@arkaria.postgresql.org; Mon, 03 Feb 2025 11:11:02 +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 1teuM1-00CPGl-FO for pgsql-bugs@arkaria.postgresql.org; Mon, 03 Feb 2025 11:11:01 +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 1teuM1-00CPF0-4F for pgsql-bugs@lists.postgresql.org; Mon, 03 Feb 2025 11:11:01 +0000 Received: from fhigh-b7-smtp.messagingengine.com ([202.12.124.158]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1teuLx-0031Q8-2w for pgsql-bugs@lists.postgresql.org; Mon, 03 Feb 2025 11:11:00 +0000 Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfhigh.stl.internal (Postfix) with ESMTP id 043D7254011B; Mon, 3 Feb 2025 06:10:55 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Mon, 03 Feb 2025 06:10:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; t=1738581055; x=1738667455; bh=B FbEIUiKp65QbWlu4Ac7lUK1e6qlSjZaArFVy15okdA=; b=iA3OtiurRvocQ+S3W dDtpY7HIH7vkponTGtlTRrUZGlDUF3wHbj+4x2uydT709rEUChIAnlITfwz/B5+4 r3lDz2olOZfrkAJJyAuvNPrH1e8E+HXBkns3QJFO6YUUEvEKLnpjH9zKe6+Vq+GV 2FDu2Yigene6vT0sFJpTbpNiEZCRzOmtcv2qYSItjW9Pm3jMIlFKbEmd19NzilI/ RfYGAlOzneAK19rVQ0QsFM0sNNckaA4XDF0wa7jFCXWOO7RIeZGLFSInARxthSRA x0Y6tvmopcahi3I4MsdzMotAn2xVtGy8V5IvAdbqUqhOcIRhWvjRD870M/xsRaPo fS6LQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddujeeghecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpeffhffvvefukfggtggugfgjsehtkeertddttdej necuhfhrohhmpemllhhvrghrohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvh hhrdhnohdqihhprdhorhhgqeenucggtffrrghtthgvrhhnpedvheeuffehgfeukeeufeeh hefghfeugfefudekjeevudffgeffkeegffffveegheenucffohhmrghinhepvghnthgvrh hprhhishgvuggsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehm rghilhhfrhhomheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrghdpnhgspg hrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohephhhtrghmfhhi ughssehgmhgrihhlrdgtohhmpdhrtghpthhtoheprhgrjhhnihgsohgsrghlsehgmhgrih hlrdgtohhmpdhrtghpthhtohepphhgshhqlhdqsghughhssehlihhsthhsrdhpohhsthhg rhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 3 Feb 2025 06:10:55 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1738581051; bh=xNync6dM7nFpa80FLZGhACarft/zVw/MsD0Ro2bQALc=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=e9OIrZZUdq8biA37oK3qTv078dxZQge3svFa0cRzLdGRoOIwR/vBqWF5r9jRE128t C3gahkYLWM6QNJo5tSXStHYWLgqR4/RJmrLT3gyPqP/Papaa/6BiIhme5yzmKvjDI1 yu8SyECfD6i4tTZ1smXuPKe4jlFxPEdNm82CXQm9PatiTGkia29K2EF8joYknHd3Hr aWJ26Xj0Lrd3VQ46PVezdVNMDmRlCVyPgsKtFEXLQkNL6D1qH3mkPuwOlAhxD+9y1n eob4bvOXgHQNxVFHHaNsBt2B37866dEqeMcr0XvYwy0syaLK4hE9eu0SHn7UuxtNKZ F5JIeOVyHq50w== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id 305BE8F; Mon, 3 Feb 2025 12:10:51 +0100 (CET) Date: Mon, 3 Feb 2025 12:10:51 +0100 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Rajni Bobal Cc: Greg Sabino Mullane , pgsql-bugs@lists.postgresql.org Subject: Re: BUG #18774: Not the required output of the query used in the function(delete_from_table1) in postgresql9.4 Message-ID: <202502031110.zwixdecgonww@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025-Feb-03, Rajni Bobal wrote: > Please clarify the use of %I will not be substituted by the string literal > 'colname' rather its value will be substituted dynamically. Yes, it is expanded dynamically to the _value_ of the variable colname, not to the literal 'colname'. If you wanted to expand a string literal there, you would use something like SELECT format('some text .. %I ... more', 'colname'); -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/