Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m72Ou-0004Sk-OS for pgsql-docs@arkaria.postgresql.org; Fri, 23 Jul 2021 21:08:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m72Ot-0003jq-FV for pgsql-docs@arkaria.postgresql.org; Fri, 23 Jul 2021 21:08:07 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m72Ot-0003ji-5P for pgsql-docs@lists.postgresql.org; Fri, 23 Jul 2021 21:08:07 +0000 Received: from mout.kundenserver.de ([212.227.126.187]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m72Om-0005iM-BT for pgsql-docs@lists.postgresql.org; Fri, 23 Jul 2021 21:08:06 +0000 Received: from [192.168.178.34] ([77.12.55.247]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.129]) with ESMTPSA (Nemesis) id 1MxV8b-1l9a1S3NAf-00xq90; Fri, 23 Jul 2021 23:07:56 +0200 Subject: Re: [PATCH] add link to domain data types section from locale documentation To: Laurenz Albe , Anton Voloshin , pgsql-docs@lists.postgresql.org References: <2ea65bdf-1380-f088-02bd-ff1a31ed265c@postgrespro.ru> <511121ea-613a-6600-b252-5cebaaa3bccf@purtz.de> <3a0dff3f-9e24-eee2-ee9e-b643b626e7b8@postgrespro.ru> <3b80ddf5a978bf084401e61288210d2fa3e75f37.camel@cybertec.at> From: =?UTF-8?Q?J=c3=bcrgen_Purtz?= Message-ID: Date: Fri, 23 Jul 2021 23:07:54 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <3b80ddf5a978bf084401e61288210d2fa3e75f37.camel@cybertec.at> Content-Type: multipart/mixed; boundary="------------77C28163DE6CD58F19051E6D" Content-Language: en-US X-Provags-ID: V03:K1:veZHQU4QDU9PlwLyMpqyPnwaBHxMcKnWoDFVIjrsd6ag1UxGj+Y oTmvaxNTG4xRGW9/AZMICCdgFceTuzIW99gB1C6nAE+EDz86wqYt5s2gyOeMMbI9nasP4Po bumW3tILY1DXCIPrr0zhcAvx8Sx/XcmfvKBO3ypREF/34LS/YQJxaZfP7WIouZxXt6ObQsA QgPKp9DSyIZ2U8g0cnw0w== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:L75Jz7kpWTo=:Rb4VQJKKW00PhrtCg65RBE ooJyg94ToBA16dHdGc3HjWJBL5ePHQrzJexdSfZIrn74O+PTzU+/bckxd5hlFdGCy5gxU9F2t mXQSaYVsbax9w0DlJcp6yrePp+haesgndyjJE7bCg5UYKoLHgcQkSoSmvMwOa9mtF5U9YxQYo x5cqdL+hNwgTnL/r//zNix+XNsSag+HS0sVY9L6HpK6fS4XGieLOq7otPUzn7FhUKqLCpAkv6 +e7pmzyjuQxNlAqQPnCrIfvmwiWVSuLMdaNbqFZkqjH08w25j+zThSDwta3VlluOK2eHeYKSI uYJn8NHFWsBZEDzL9Ok3+JKSLutvA49c6g3PnxK6gjNw0fqll8GQ1s4NeFYKREAvsSXnEvrMa EEEUahSiGL42+hDX2V8pdV5OeSlNqrLsE2BHT2BHSMTy8qSg9hQWGYQmtsdBaLRmk4WiqaWRP GEjDWxMXG+YtdI+mSzAXE9jm2++wJC0XauB1iJ5Km4qbgsCTThbAk01YhmBlI+5xKALROfH7m MBNiJISJXEnbn3EaD7K9c5cVWQp6zP8sodHhLkR3THAYOgfkR8FMlkWAgRnBuQQLogg+l9xLw Z38c7tT8UkA3cz3aORJyFY5RYhchdo/A99Ve6OaAKygUJdRRPx7n0L45CewChjZqfVnI90nfg 0o7qB9QyvNw/l2m56GY5J+m2IGDgJdIK2cIuUK51KbKg14jhOJ4P3NRg2z3XiqPOxhdxbB/qr PD3i2sIyr7TEzkiAujbOD7clSKTxeCWpJfZ174pDSvBjlzCSTz1ifNskz31fo9tZrga4fCstw KHV0YJzDDLvwY9sJityt5ln2ZqZmzdWRRPfMyUtasalimkrK6sqwa8/z3Ogm3EIvI8MffLt List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------77C28163DE6CD58F19051E6D Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 27.05.21 09:45, Laurenz Albe wrote: > I like the new link from "src/sgml/charset.sgml", but I think that > there are a few other places in the documentation that are likely to be > read by people who don't know about SQL domains and could benefit from such > a link: > > - src/sgml/earthdistance.sgml > > - src/sgml/lo.sgml > > - src/sgml/information_schema.sgml (the entries about "check_constraints", > "column_domain_usage", "data_type_privileges", "domain_constraints", > "domain_catalog", "domain_udt_usage", "domains" and the description below > "columns") > > This selection is a bit arbitrary, I admit. > > Yours, > Laurenz Albe Done at the proposed pages - and a few more. -- Jürgen Purtz --------------77C28163DE6CD58F19051E6D Content-Type: text/x-patch; charset=UTF-8; name="collation-domains-link-03.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="collation-domains-link-03.patch" diff --git a/doc/src/sgml/charset.sgml b/doc/src/sgml/charset.sgml index 98df74d0e1..8434bf6ba4 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..f5b60ea612 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 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..0c1176fa07 100644 --- a/doc/src/sgml/glossary.sgml +++ b/doc/src/sgml/glossary.sgml @@ -389,9 +389,7 @@ A restriction on the values of data allowed within a table, - or in attributes of a - - domain. + or in attributes of a domain. For more information, see @@ -508,6 +506,27 @@ + + Domain (Internet) + + + A realm to administer certain Internet resources. + + + + + + Domain (SQL) + + + A user-defined data type that is based on another underlying data type. + + + For more information, see . + + + + Durability diff --git a/doc/src/sgml/information_schema.sgml b/doc/src/sgml/information_schema.sgml index 4100198252..13de037b8e 100644 --- a/doc/src/sgml/information_schema.sgml +++ b/doc/src/sgml/information_schema.sgml @@ -912,8 +912,8 @@ The view check_constraints contains all check - constraints, either defined on a table or on a domain, that are - owned by a currently enabled role. (The owner of the table or + constraints, either defined on a table or on a domain, + that are owned by a currently enabled role. (The owner of the table or domain is the owner of the constraint.) @@ -1199,7 +1199,8 @@ The view column_domain_usage identifies all - columns (of a table or a view) that make use of some domain defined + columns (of a table or a view) that make use of some + domain defined in the current database and owned by a currently enabled role. @@ -2307,7 +2308,8 @@ data type descriptors that the current user has access to, by way of being the owner of the described object or having some privilege for it. A data type descriptor is generated whenever a data type - is used in the definition of a table column, a domain, or a + is used in the definition of a table column, a + domain, or a function (as parameter or return type) and stores some information about how the data type is used in that instance (for example, the declared maximum length, if applicable). Each data type @@ -2393,7 +2395,8 @@ The view domain_constraints contains all constraints - belonging to domains defined in the current database. Only those domains + belonging to 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). @@ -2445,7 +2448,8 @@ domain_catalog sql_identifier - Name of the database that contains the domain (always the current database) + Name of the database that contains the domain + (always the current database) @@ -2493,7 +2497,8 @@ <literal>domain_udt_usage</literal> - The view domain_udt_usage identifies all domains + The view domain_udt_usage identifies all + domains that are based on data types owned by a currently enabled role. Note that in PostgreSQL, built-in data types behave like user-defined types, so they are included here as @@ -2577,7 +2582,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..d77e39ac76 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 of 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..222baf9619 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.) --------------77C28163DE6CD58F19051E6D--