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:56:38 -0500
commit439c7bc1a070d746fab69d8696fca78673e64ba9 (patch)
tree7f0112717e414c5e3e2f71667ae4e065d22c4d32
parent51940f97607b7cb4d03bdd99e43abb1a1c6a0c47 (diff)
downloadpostgresql-439c7bc1a070d746fab69d8696fca78673e64ba9.tar.gz
postgresql-439c7bc1a070d746fab69d8696fca78673e64ba9.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 d2df40d5431..8bf9dc992be 100644
--- a/doc/src/sgml/ref/create_table.sgml
+++ b/doc/src/sgml/ref/create_table.sgml
@@ -1531,7 +1531,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>