mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-05 15:39:20 +02:00
Add to_regnamespace() and to_regrole() to the documentation.
Commitscb9fa802b3
and0c90f6769d
added these functions, but did not bother with documentation.
This commit is contained in:
parent
cdd4ed5449
commit
41abf18502
@ -15788,6 +15788,14 @@ SELECT pg_type_is_visible('myschema.widget'::regtype);
|
|||||||
<primary>to_regtype</primary>
|
<primary>to_regtype</primary>
|
||||||
</indexterm>
|
</indexterm>
|
||||||
|
|
||||||
|
<indexterm>
|
||||||
|
<primary>to_regnamespace</primary>
|
||||||
|
</indexterm>
|
||||||
|
|
||||||
|
<indexterm>
|
||||||
|
<primary>to_regrole</primary>
|
||||||
|
</indexterm>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
<xref linkend="functions-info-catalog-table"> lists functions that
|
<xref linkend="functions-info-catalog-table"> lists functions that
|
||||||
extract information from the system catalogs.
|
extract information from the system catalogs.
|
||||||
@ -15978,6 +15986,16 @@ SELECT pg_type_is_visible('myschema.widget'::regtype);
|
|||||||
<entry><type>regtype</type></entry>
|
<entry><type>regtype</type></entry>
|
||||||
<entry>get the OID of the named type</entry>
|
<entry>get the OID of the named type</entry>
|
||||||
</row>
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry><literal><function>to_regnamespace(<parameter>schema_name</parameter>)</function></literal></entry>
|
||||||
|
<entry><type>regnamespace</type></entry>
|
||||||
|
<entry>get the OID of the named schema</entry>
|
||||||
|
</row>
|
||||||
|
<row>
|
||||||
|
<entry><literal><function>to_regrole(<parameter>role_name</parameter>)</function></literal></entry>
|
||||||
|
<entry><type>regrole</type></entry>
|
||||||
|
<entry>get the OID of the named role</entry>
|
||||||
|
</row>
|
||||||
</tbody>
|
</tbody>
|
||||||
</tgroup>
|
</tgroup>
|
||||||
</table>
|
</table>
|
||||||
@ -16121,10 +16139,13 @@ SELECT collation for ('foo' COLLATE "de_DE");
|
|||||||
<para>
|
<para>
|
||||||
The <function>to_regclass</function>, <function>to_regproc</function>,
|
The <function>to_regclass</function>, <function>to_regproc</function>,
|
||||||
<function>to_regprocedure</function>, <function>to_regoper</function>,
|
<function>to_regprocedure</function>, <function>to_regoper</function>,
|
||||||
<function>to_regoperator</function>, and <function>to_regtype</function>
|
<function>to_regoperator</function>, <function>to_regtype</function>,
|
||||||
functions translate relation, function, operator, and type names to objects
|
<function>to_regnamespace</function>, and <function>to_regrole</function>
|
||||||
of type <type>regclass</>, <type>regproc</>, <type>regprocedure</type>,
|
functions translate relation, function, operator, type, schema, and role
|
||||||
<type>regoper</>, <type>regoperator</type>, and <type>regtype</>,
|
names to objects of
|
||||||
|
type <type>regclass</>, <type>regproc</>, <type>regprocedure</type>,
|
||||||
|
<type>regoper</>, <type>regoperator</type>, <type>regtype</>,
|
||||||
|
<type>regnamespace</>, and <type>regrole</>
|
||||||
respectively. These functions differ from a cast from
|
respectively. These functions differ from a cast from
|
||||||
text in that they don't accept a numeric OID, and that they return null
|
text in that they don't accept a numeric OID, and that they return null
|
||||||
rather than throwing an error if the name is not found (or, for
|
rather than throwing an error if the name is not found (or, for
|
||||||
|
Loading…
Reference in New Issue
Block a user