Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 64fd650

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 785affc commit 64fd650

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/src/sgml/advanced.sgml

+3-2
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)