Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
6c3561b9
Commit
6c3561b9
authored
Aug 08, 2004
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor editorialization on example --- I think that the use of dollar
quoting in this case is just needless obscurantism.
parent
ff9d69d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
doc/src/sgml/ref/create_domain.sgml
doc/src/sgml/ref/create_domain.sgml
+6
-6
No files found.
doc/src/sgml/ref/create_domain.sgml
View file @
6c3561b9
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/create_domain.sgml,v 1.1
8 2004/08/08 01:49:30 momjian
Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/create_domain.sgml,v 1.1
9 2004/08/08 02:05:32 tgl
Exp $
PostgreSQL documentation
-->
...
...
@@ -161,14 +161,14 @@ where <replaceable class="PARAMETER">constraint</replaceable> is:
<para>
This example creates the <type>us_postal_code</type> data type and
then uses the type in a table definition:
then uses the type in a table definition. A regular expression test
is used to verify that the value looks like a valid US postal code.
<programlisting>
CREATE DOMAIN us_postal_code AS TEXT
NOT NULL
CHECK(
VALUE ~
$pc$^\d{5}$$pc$
OR VALUE ~
$pc$^\d{5}-\d{4}$$pc$
VALUE ~
'^\d{5}$'
OR VALUE ~
'^\d{5}-\d{4}$'
);
CREATE TABLE us_snail_addy (
...
...
@@ -177,7 +177,7 @@ CREATE TABLE us_snail_addy (
, street2 TEXT
, street3 TEXT
, city TEXT NOT NULL
, postal us_postal_code
, postal us_postal_code
NOT NULL
);
</programlisting>
</para>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment