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.98.2) (envelope-from ) id 1x7vE4-00000000o46-1Woe for pgsql-docs@arkaria.postgresql.org; Sat, 19 Sep 2026 13:35:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1x7vE3-00000004zgL-2rUV for pgsql-docs@arkaria.postgresql.org; Sat, 19 Sep 2026 13:35:31 +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.98.2) (envelope-from ) id 1x7o0c-00000004Jhd-0v3h for pgsql-docs@lists.postgresql.org; Sat, 19 Sep 2026 05:53:10 +0000 Received: from mahout.postgresql.org ([2001:4800:3e1:1::227]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1x7o0Z-000000009zX-20i5 for pgsql-docs@lists.postgresql.org; Sat, 19 Sep 2026 05:53:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=postgresql.org; s=20171124; h=Message-ID:Date:Reply-To:Cc:From:To:Subject: Content-Transfer-Encoding:MIME-Version:Content-Type:Sender:Content-ID: Content-Description:In-Reply-To:References; bh=H1DJEbrkFABVZKK7BmX8P9F7HP6dzplLmSK01i34mvo=; b=Ag47xmG9tTLeCSav1yhrFXjUmY +j4QMAWDWuedsXrjp3s+SJyOv6hOB9rCxj/nd36MiM98H84Yfs7J6KmL9VsJ8QNHLrbXrNvUaV4As VD+/r1mQRF7FwElCQrvtCqSiYX+mOLUQTqxREU3rMb+E8I4rqt8eyrS4eRlgKrWdnlz4wLT8i0F9x /n7LFxV3PtlN9KZAnJny3HXqn2PO/9DMPpera2G2+mMzZllf08/uIGOd8lzPxhwfhUUyLN5OP2xAi n31zKI5XWBdGgNAwFEmuKZtdk1rowMYBd5nHeXdf2X2VhD/qxS7WhjKXRwKGHBIpRYkXyqlW065qP h47DhKnA==; Received: from wrigleys.postgresql.org ([2a02:16a8:dc51::60]) by mahout.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1x7o0X-000PAb-04 for pgsql-docs@lists.postgresql.org; Sat, 19 Sep 2026 05:53:05 +0000 Received: from localhost ([127.0.0.1] helo=wrigleys.postgresql.org) by wrigleys.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1x7o0U-00000001OOj-3awj for pgsql-docs@lists.postgresql.org; Sat, 19 Sep 2026 05:53:03 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: 9.4.1. format To: pgsql-docs@lists.postgresql.org From: PG Doc comments form Cc: y.saburov@gmail.com Reply-To: y.saburov@gmail.com, pgsql-docs@lists.postgresql.org Date: Sat, 19 Sep 2026 05:52:22 +0000 Message-ID: <178979714249.1241.1230833804069549466@wrigleys.postgresql.org> X-Auto-Response-Suppress: All Auto-Submitted: auto-generated List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk The following documentation comment has been logged on the website: Page: https://www.postgresql.org/docs/18/functions-string.html Description: >> Here are some examples of the basic format conversions: ```html SELECT format('INSERT INTO %I VALUES(%L)', 'locations', 'C:\Program Files'); Result: INSERT INTO locations VALUES('C:\Program Files') ``` ```sql db=3D# SELECT format('INSERT INTO %I VALUES(%L)', 'locations', 'C:\Program Files'); format ---------------------------------------------------- INSERT INTO locations VALUES(E'C:\\Program Files') ```