]> granicus.if.org Git - postgresql/commitdiff
Adjust CREATE DOMAIN example for standard_conforming_strings=on.
authorRobert Haas <rhaas@postgresql.org>
Thu, 25 Aug 2011 13:35:38 +0000 (09:35 -0400)
committerRobert Haas <rhaas@postgresql.org>
Thu, 25 Aug 2011 13:37:44 +0000 (09:37 -0400)
Noted by Hitoshi Harada.

doc/src/sgml/ref/create_domain.sgml

index 2c8b1f4e7482939130c990d219c197f105e2cc30..0f901d78ee94487497eb3b6b86b98cfa362cc046 100644 (file)
@@ -189,8 +189,8 @@ CREATE DOMAIN <replaceable class="parameter">name</replaceable> [ AS ] <replacea
 <programlisting>
 CREATE DOMAIN us_postal_code AS TEXT
 CHECK(
-   VALUE ~ '^\\d{5}$'
-OR VALUE ~ '^\\d{5}-\\d{4}$'
+   VALUE ~ '^\d{5}$'
+OR VALUE ~ '^\d{5}-\d{4}$'
 );
 
 CREATE TABLE us_snail_addy (