Doc: add a glossary entry for "domain".
authorTom Lane
Fri, 30 Jul 2021 18:50:21 +0000 (14:50 -0400)
committerTom Lane
Fri, 30 Jul 2021 18:50:21 +0000 (14:50 -0400)
Anton Voloshin and Jürgen Purtz, reviewed by Laurenz Albe

Discussion: https://postgr.es/m/2ea65bdf-1380-f088-02bd-ff1a31ed265c@postgrespro.ru

doc/src/sgml/charset.sgml
doc/src/sgml/earthdistance.sgml
doc/src/sgml/glossary.sgml
doc/src/sgml/information_schema.sgml
doc/src/sgml/lo.sgml
doc/src/sgml/rowtypes.sgml

index 98df74d0e1017bb17b7ccb77978ae5575b0cc43e..05a6bf568f4830ad014acf31caedeece7e677509 100644 (file)
@@ -346,7 +346,8 @@ initdb --locale=sv_SE
     collation.  (The built-in collatable data types are
     textvarchar, 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
index 641e69c5e98454880f00a241d45a7514b5c03396..4377249c361de1824d261b84b7648be1a0a0d0df 100644 (file)
@@ -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.
   
index c8d0440e80f50a220cbd4a6b9d9dcdad5a238023..63ff4bbdf06038e3759cea2805de82f44291d1a1 100644 (file)
      A restriction on the values of data allowed within a
      table,
      or in attributes of a
-     
-     domain.
+     domain.
     
     
      For more information, see
    
   
 
+  
+   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
    
index 41001982528bd2184f0d4d2d9adc7482905b4e91..c5e68c175f97e5227da7fafec225a836130f8b25 100644 (file)
   <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).
   
index 0a4f2e4449a0fa6dd58c63acd486b4b2bab37cc2..f46cd392dff6ae845851111d0bdc258450625ebc 100644 (file)
@@ -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
index a6f4f6709c8a3f0737cac994216f82afcb249460..417ccb00ded90d5a9462547f05a2a5fe20632f3e 100644 (file)
@@ -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.)