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 1otioM-0002Ny-Ts for pgsql-general@arkaria.postgresql.org; Sat, 12 Nov 2022 05:12:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1otioL-00036V-5E for pgsql-general@arkaria.postgresql.org; Sat, 12 Nov 2022 05:12:09 +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 1otioK-00036M-Q8 for pgsql-general@lists.postgresql.org; Sat, 12 Nov 2022 05:12:08 +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 1otioE-0004RA-FM for pgsql-general@lists.postgresql.org; Sat, 12 Nov 2022 05:12:07 +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 2AC5C0h9009310; Sat, 12 Nov 2022 00:12:00 -0500 From: Tom Lane To: Igor Korot cc: "pgsql-generallists.postgresql.org" Subject: Re: Printf-like function In-reply-to: References: Comments: In-reply-to Igor Korot message dated "Fri, 11 Nov 2022 23:07:15 -0600" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <9308.1668229920.1@sss.pgh.pa.us> Date: Sat, 12 Nov 2022 00:12:00 -0500 Message-ID: <9309.1668229920@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Igor Korot writes: > Is there a printf-lilke function inside libpq that can be used > to create a proper query string with the proper quoting of the > literal? No. You'd be better off to transmit the literal value as a parameter. regards, tom lane