Re: 4.1. Lexical Structure - Mailing list pgsql-docs

From David G. Johnston
Subject Re: 4.1. Lexical Structure
Date
Msg-id CAKFQuwa8OKhThrW4Q3TymimxEf5JBVMhDutj5HbbRmDUuvVEkA@mail.gmail.com
Whole thread
Responses Re: 4.1. Lexical Structure
List pgsql-docs
On Thu, Aug 27, 2026 at 10:20 AM PG Doc comments form <noreply@postgresql.org> wrote:
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?

4.1.1 and 4.1.2 are rightly written so as to keep them independent of one another.  It in part avoids wordiness in dealing with the fact that identifiers use double quotes while string literals use single quotes.


In Section 4.1.1, “Identifiers and Keywords”:

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

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

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


Thus while these are indeed both similar to each other the so-called repetition is warranted.

David J.


pgsql-docs by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Parameters - PARAMS - PARMS ...
Next
From: Pavel Stehule
Date:
Subject: Re: 4.1.2.3. String Constants with Unicode Escapes