Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4d93773

Browse filesBrowse 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 fd0f8a6 commit 4d93773
Copy full SHA for 4d93773

File tree

Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-2
lines changed

‎doc/src/sgml/advanced.sgml

Copy file name to clipboardExpand all lines: doc/src/sgml/advanced.sgml
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ CREATE TABLE cities (
617617
);
618618

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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.