Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions doc/src/sgml/func/func-info.sgml
Original file line number Diff line number Diff line change
Expand Up @@ -3795,6 +3795,53 @@ acl | {postgres=arwdDxtm/postgres,foo=r/postgres}
</tgroup>
</table>

</sect2>
<sect2 id="functions-info-retail">
<title>DDL Retail Functions</title>

<para>
The functions describes in <xref linkend="functions-info-retail-table"/>
return the Data Definition Language (DDL) statement for any given database object.
This feature is implemented as a set of distinct functions for each object type.
</para>

<table id="functions-info-retail-table">
<title>DDL Retail Functions</title>
<tgroup cols="1">
<thead>
<row>
<entry role="func_table_entry"><para role="func_signature">
Function
</para>
<para>
Description
</para></entry>
</row>
</thead>

<tbody>
<row>
<entry role="func_table_entry"><para role="func_signature">
<indexterm>
<primary>pg_get_type_ddl</primary>
</indexterm>
<function>pg_get_type_ddl</function>
( <parameter>text</parameter> )
<returnvalue>text</returnvalue>
</para>
<para>
Reconstructs the underlying <literal>CREATE TYPE</literal> DDL statement for A
given user defined type, returning the complete command as text. It generates
definitions for composite, enum, range, base, and shell types. An error is raised
if the function is provided with an unsupported type, such as a <literal>DOMAIN</literal>
since it has its own <literal>CREATE DOMAIN</literal> statement, a pseudo-type, or
a multirange type.
</para></entry>
</row>
</tbody>
</tgroup>
</table>

</sect2>

</sect1>
Loading