aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2018-02-15 13:56:38 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2018-02-15 13:57:08 -0500
commit495739878c0426c3214a5e32eec8224614b595eb (patch)
tree57945b438aaf5c68fcf8aa046a27f82c44acff20
parentdb1c597f3c331f57201a6fbfab72b93fd98f9945 (diff)
downloadpostgresql-495739878c0426c3214a5e32eec8224614b595eb.tar.gz
postgresql-495739878c0426c3214a5e32eec8224614b595eb.zip
Doc: fix minor bug in CREATE TABLE example.
One example in create_table.sgml claimed to be showing table constraint syntax, but it was really column constraint syntax due to the omission of a comma. This is both wrong and confusing, so fix it in all supported branches. Per report from neil@postgrescompare.com. Discussion: https://postgr.es/m/151871659877.1393.2431103178451978795@wrigleys.postgresql.org
-rw-r--r--doc/src/sgml/ref/create_table.sgml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/sgml/ref/create_table.sgml b/doc/src/sgml/ref/create_table.sgml
index 0abe78d37e2..9862fb867c8 100644
--- a/doc/src/sgml/ref/create_table.sgml
+++ b/doc/src/sgml/ref/create_table.sgml
@@ -1214,7 +1214,7 @@ CREATE TABLE distributors (
<programlisting>
CREATE TABLE distributors (
did integer,
- name varchar(40)
+ name varchar(40),
CONSTRAINT con1 CHECK (did &gt; 100 AND name &lt;&gt; '')
);
</programlisting>