diff --git a/doc/src/sgml/charset.sgml b/doc/src/sgml/charset.sgml index 98df74d0e1..05a6bf568f 100644 --- a/doc/src/sgml/charset.sgml +++ b/doc/src/sgml/charset.sgml @@ -346,7 +346,8 @@ initdb --locale=sv_SE collation. (The built-in collatable data types are text, varchar, and char. User-defined base types can also be marked collatable, and of course - a domain over a collatable data type is collatable.) If the + a domain over a + collatable data type is collatable.) If the expression is a column reference, the collation of the expression is the defined collation of the column. If the expression is a constant, the collation is the default collation of the data type of the diff --git a/doc/src/sgml/earthdistance.sgml b/doc/src/sgml/earthdistance.sgml index 641e69c5e9..4377249c36 100644 --- a/doc/src/sgml/earthdistance.sgml +++ b/doc/src/sgml/earthdistance.sgml @@ -50,7 +50,8 @@ Data is stored in cubes that are points (both corners are the same) using 3 coordinates representing the x, y, and z distance from the center of the - Earth. A domain earth over cube is provided, which + Earth. A domain + earth over type cube is provided, which includes constraint checks that the value meets these restrictions and is reasonably close to the actual surface of the Earth. diff --git a/doc/src/sgml/glossary.sgml b/doc/src/sgml/glossary.sgml index c8d0440e80..63ff4bbdf0 100644 --- a/doc/src/sgml/glossary.sgml +++ b/doc/src/sgml/glossary.sgml @@ -390,8 +390,7 @@ A restriction on the values of data allowed within a table, or in attributes of a - - domain. + domain. For more information, see @@ -508,6 +507,20 @@ + + Domain + + + A user-defined data type that is based on another underlying data type. + It acts the same as the underlying type except for possibly restricting + the set of allowed values. + + + For more information, see . + + + + Durability diff --git a/doc/src/sgml/information_schema.sgml b/doc/src/sgml/information_schema.sgml index 4100198252..c5e68c175f 100644 --- a/doc/src/sgml/information_schema.sgml +++ b/doc/src/sgml/information_schema.sgml @@ -2577,7 +2577,8 @@ <literal>domains</literal> - The view domains contains all domains defined in the + The view domains contains all + domains defined in the current database. Only those domains are shown that the current user has access to (by way of being the owner or having some privilege). diff --git a/doc/src/sgml/lo.sgml b/doc/src/sgml/lo.sgml index 0a4f2e4449..f46cd392df 100644 --- a/doc/src/sgml/lo.sgml +++ b/doc/src/sgml/lo.sgml @@ -55,7 +55,8 @@ The module also provides a data type lo, which is really just - a domain of the oid type. This is useful for differentiating + a domain over + the oid type. This is useful for differentiating database columns that hold large object references from those that are OIDs of other things. You don't have to use the lo type to use the trigger, but it may be convenient to use it to keep track of which diff --git a/doc/src/sgml/rowtypes.sgml b/doc/src/sgml/rowtypes.sgml index a6f4f6709c..417ccb00de 100644 --- a/doc/src/sgml/rowtypes.sgml +++ b/doc/src/sgml/rowtypes.sgml @@ -84,7 +84,8 @@ CREATE TABLE inventory_item ( restriction of the current implementation: since no constraints are associated with a composite type, the constraints shown in the table definition do not apply to values of the composite type - outside the table. (To work around this, create a domain over the composite + outside the table. (To work around this, create a + domain over the composite type, and apply the desired constraints as CHECK constraints of the domain.)