Commit a4d69a41 authored by Neil Conway's avatar Neil Conway

Minor doc tweak: "NOT NULL" is redundant with "SERIAL" in example.

parent c45eb536
<!-- <!--
$PostgreSQL: pgsql/doc/src/sgml/ref/create_domain.sgml,v 1.26 2005/11/04 23:14:02 petere Exp $ $PostgreSQL: pgsql/doc/src/sgml/ref/create_domain.sgml,v 1.27 2005/12/25 01:41:15 neilc Exp $
PostgreSQL documentation PostgreSQL documentation
--> -->
...@@ -20,7 +20,7 @@ PostgreSQL documentation ...@@ -20,7 +20,7 @@ PostgreSQL documentation
<refsynopsisdiv> <refsynopsisdiv>
<synopsis> <synopsis>
CREATE DOMAIN <replaceable class="parameter">name</replaceable> [AS] <replaceable class="parameter">data_type</replaceable> CREATE DOMAIN <replaceable class="parameter">name</replaceable> [ AS ] <replaceable class="parameter">data_type</replaceable>
[ DEFAULT <replaceable>expression</> ] [ DEFAULT <replaceable>expression</> ]
[ <replaceable class="PARAMETER">constraint</replaceable> [ ... ] ] [ <replaceable class="PARAMETER">constraint</replaceable> [ ... ] ]
...@@ -185,7 +185,7 @@ OR VALUE ~ '^\\d{5}-\\d{4}$' ...@@ -185,7 +185,7 @@ OR VALUE ~ '^\\d{5}-\\d{4}$'
); );
CREATE TABLE us_snail_addy ( CREATE TABLE us_snail_addy (
address_id SERIAL NOT NULL PRIMARY KEY address_id SERIAL PRIMARY KEY
, street1 TEXT NOT NULL , street1 TEXT NOT NULL
, street2 TEXT , street2 TEXT
, street3 TEXT , street3 TEXT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment