Skip to content

Commit 47c427d

Browse files
committed
docs: improve 'capitals' inheritance example
Adds constraints and improves wording. Reported-by: 2552891@gmail.com Discussion: https://postgr.es/m/159586122762.680.1361378513036616007@wrigleys.postgresql.org Backpatch-through: 9.5
1 parent 243a3b9 commit 47c427d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/src/sgml/advanced.sgml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ CREATE TABLE cities (
616616
);
617617

618618
CREATE TABLE capitals (
619-
state char(2)
619+
state char(2) UNIQUE NOT NULL
620620
) INHERITS (cities);
621621
</programlisting>
622622
</para>
@@ -630,7 +630,8 @@ CREATE TABLE capitals (
630630
<type>text</type>, a native <productname>PostgreSQL</productname>
631631
type for variable length character strings. The
632632
<classname>capitals</classname> table has
633-
an extra column, <structfield>state</structfield>, which shows their states. In
633+
an additional column, <structfield>state</structfield>, which shows its
634+
state abbreviation. In
634635
<productname>PostgreSQL</productname>, a table can inherit from
635636
zero or more other tables.
636637
</para>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy