Undocumented behaviour of \s in SIMILAR TO expression - Mailing list pgsql-docs

From PG Doc comments form
Subject Undocumented behaviour of \s in SIMILAR TO expression
Date
Msg-id 154470529073.5057.10757027183683688588@wrigleys.postgresql.org
Whole thread Raw
Responses Re: Undocumented behaviour of \s in SIMILAR TO expression
List pgsql-docs
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/11/functions-matching.html
Description:

SELECT ' ' SIMILAR TO '[\s]';
returns true

SELECT ' ' SIMILAR TO '[\q]';
generates an error: [2201B]: ERROR: invalid regular expression: invalid
escape \ sequence

\s is not mentioned in the SIMILAR TO section
(https://www.postgresql.org/docs/current/functions-matching.html#FUNCTIONS-SIMILARTO-REGEXP).
If it’s officially supported (which would be useful for my current task), it
should be documented. Otherwise the server should generate an error like for
other invalid escapes.

pgsql-docs by date:

Previous
From: PG Doc comments form
Date:
Subject: citext plugin is not working with java applications
Next
From: PG Doc comments form
Date:
Subject: pgBadger link needs to be updated