|
284 | 284 | the attributes of composite data types defined in the database. |
285 | 285 | (Note that the view does not give information about table columns, |
286 | 286 | which are sometimes called attributes in PostgreSQL contexts.) |
| 287 | + Only those attributes are shown that the current user has access to (by way |
| 288 | + of being the owner of or having some privilege on the type). |
287 | 289 | </para> |
288 | 290 |
|
289 | 291 | <table> |
|
1915 | 1917 | <title><literal>domain_constraints</literal></title> |
1916 | 1918 |
|
1917 | 1919 | <para> |
1918 | | - The view <literal>domain_constraints</literal> contains all |
1919 | | - constraints belonging to domains defined in the current database. |
| 1920 | + The view <literal>domain_constraints</literal> contains all constraints |
| 1921 | + belonging to domains defined in the current database. Only those domains |
| 1922 | + are shown that the current user has access to (by way of being the owner or |
| 1923 | + having some privilege). |
1920 | 1924 | </para> |
1921 | 1925 |
|
1922 | 1926 | <table> |
|
2052 | 2056 | <title><literal>domains</literal></title> |
2053 | 2057 |
|
2054 | 2058 | <para> |
2055 | | - The view <literal>domains</literal> contains all domains defined in |
2056 | | - the current database. |
| 2059 | + The view <literal>domains</literal> contains all domains defined in the |
| 2060 | + current database. Only those domains are shown that the current user has |
| 2061 | + access to (by way of being the owner or having some privilege). |
2057 | 2062 | </para> |
2058 | 2063 |
|
2059 | 2064 | <table> |
@@ -5778,15 +5783,13 @@ ORDER BY c.ordinal_position; |
5778 | 5783 | <title><literal>udt_privileges</literal></title> |
5779 | 5784 |
|
5780 | 5785 | <para> |
5781 | | - The view <literal>udt_privileges</literal> is intended to identify |
5782 | | - <literal>USAGE</literal> privileges granted on user-defined types |
5783 | | - to a currently enabled role or by a currently enabled role. Since |
5784 | | - data types do not have real privileges |
5785 | | - in <productname>PostgreSQL</productname>, this view shows implicit |
5786 | | - non-grantable <literal>USAGE</literal> privileges granted by the |
5787 | | - owner to <literal>PUBLIC</literal> for all types, including |
5788 | | - built-in ones (except domains, |
5789 | | - see <xref linkend="infoschema-usage-privileges"> for that). |
| 5786 | + The view <literal>udt_privileges</literal> identifies |
| 5787 | + <literal>USAGE</literal> privileges granted on user-defined types to a |
| 5788 | + currently enabled role or by a currently enabled role. There is one row for |
| 5789 | + each combination of column, grantor, and grantee. This view shows only |
| 5790 | + composite types (see under <xref linkend="infoschema-user-defined-types"> |
| 5791 | + for why); see |
| 5792 | + <xref linkend="infoschema-usage-privileges"> for domain privileges. |
5790 | 5793 | </para> |
5791 | 5794 |
|
5792 | 5795 | <table> |
@@ -5861,10 +5864,10 @@ ORDER BY c.ordinal_position; |
5861 | 5864 | </para> |
5862 | 5865 |
|
5863 | 5866 | <para> |
5864 | | - Since collations and domains do not have real privileges |
| 5867 | + Since collations do not have real privileges |
5865 | 5868 | in <productname>PostgreSQL</productname>, this view shows implicit |
5866 | 5869 | non-grantable <literal>USAGE</literal> privileges granted by the |
5867 | | - owner to <literal>PUBLIC</literal> for all collations and domains. The other |
| 5870 | + owner to <literal>PUBLIC</literal> for all collations. The other |
5868 | 5871 | object types, however, show real privileges. |
5869 | 5872 | </para> |
5870 | 5873 |
|
@@ -5940,6 +5943,8 @@ ORDER BY c.ordinal_position; |
5940 | 5943 | <para> |
5941 | 5944 | The view <literal>user_defined_types</literal> currently contains |
5942 | 5945 | all composite types defined in the current database. |
| 5946 | + Only those types are shown that the current user has access to (by way |
| 5947 | + of being the owner or having some privilege). |
5943 | 5948 | </para> |
5944 | 5949 |
|
5945 | 5950 | <para> |
|
0 commit comments