pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Doc comments form <noreply@postgresql.org>
To: pgsql-docs@lists.postgresql.org
Cc: y.saburov@gmail.com
Subject: 4.1. Lexical Structure
Date: Thu, 27 Aug 2026 05:14:33 +0000
Message-ID: <178780767380.2606572.13379338852408472630@wrigleys.postgresql.org> (raw)

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/18/sql-syntax-lexical.html
Description:

Why repeat information within the same section?

In Section 4.1.1, “Identifiers and Keywords”:

>> The option with identifiers in quotation marks allows you to include
escaped Unicode characters identified by their code points. This option
begins with U& (an uppercase or lowercase U followed by an ampersand)
immediately before the opening double quotation mark, with no spaces between
them, for example, U&“foo”. (Note that this creates ambiguity regarding the
& operator. To avoid this problem, use spaces around the operator.) Inside
the quotation marks, Unicode characters can be specified in escaped form by
writing a backslash followed by the character’s four-digit hexadecimal code,
or, alternatively, a backslash followed by a plus sign, followed by the
character’s six-digit hexadecimal code. For example, the identifier “data”
can be written as follows:

> U&“d\0061t\+000061”
...
....

This information, along with examples, is also provided in Section 4.1.2.3.
String Constants with Escaped Unicode Characters

>> PostgreSQL also supports another type of string escape syntax that allows
you to specify arbitrary Unicode characters by code point. A Unicode-escaped
string constant begins with U& (an uppercase or lowercase U followed by an
ampersand) immediately before the opening quote, with no spaces between
them, for example, U&“foo”. (Note that this creates ambiguity with the &
operator. To avoid this problem, use spaces around the operator.) Inside the
quotes, Unicode characters can be specified in escaped form by writing a
backslash followed by the four-digit hexadecimal code of the character, or,
alternatively, a backslash followed by a plus sign, followed by the
six-digit hexadecimal code of the character. For example, the string “data”
can be written as follows:

> U&'d\0061t\+000061'
...
....






view thread (4+ messages)  latest in thread

Message-ID: <178780767380.2606572.13379338852408472630@wrigleys.postgresql.org>
Permalink:  ../178780767380.2606572.13379338852408472630@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/178780767380.2606572.13379338852408472630@wrigleys.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-docs@lists.postgresql.org, y.saburov@gmail.com
  Subject: Re: 4.1. Lexical Structure
  In-Reply-To: <178780767380.2606572.13379338852408472630@wrigleys.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox