diff options
author | Bruce Momjian | 2020-08-31 17:43:05 +0000 |
---|---|---|
committer | Bruce Momjian | 2020-08-31 17:43:05 +0000 |
commit | 47c427d006267d752fee4655543ec99dabe9e61d (patch) | |
tree | f33e60a712e3295faf209a049b0dd08959bc1a68 | |
parent | 243a3b92a67519d4da1712b4fbad194bded3afb5 (diff) |
docs: improve 'capitals' inheritance example
Adds constraints and improves wording.
Reported-by: [email protected]
Discussion: https://postgr.es/m/[email protected]
Backpatch-through: 9.5
-rw-r--r-- | doc/src/sgml/advanced.sgml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/src/sgml/advanced.sgml b/doc/src/sgml/advanced.sgml index d77312600f..2d4ab85d45 100644 --- a/doc/src/sgml/advanced.sgml +++ b/doc/src/sgml/advanced.sgml @@ -616,7 +616,7 @@ CREATE TABLE cities ( ); CREATE TABLE capitals ( - state char(2) + state char(2) UNIQUE NOT NULL ) INHERITS (cities); </programlisting> </para> @@ -630,7 +630,8 @@ CREATE TABLE capitals ( <type>text</type>, a native <productname>PostgreSQL</productname> type for variable length character strings. The <classname>capitals</classname> table has - an extra column, <structfield>state</structfield>, which shows their states. In + an additional column, <structfield>state</structfield>, which shows its + state abbreviation. In <productname>PostgreSQL</productname>, a table can inherit from zero or more other tables. </para> |