|
1 | 1 | <!--
|
2 |
| -$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.236 2005/01/26 20:42:19 tgl Exp $ |
| 2 | +$PostgreSQL: pgsql/doc/src/sgml/func.sgml,v 1.237 2005/01/28 23:12:59 tgl Exp $ |
3 | 3 | PostgreSQL documentation
|
4 | 4 | -->
|
5 | 5 |
|
@@ -8505,6 +8505,10 @@ SELECT pg_type_is_visible('myschema.widget'::regtype);
|
8505 | 8505 | this way — if the name can be recognized at all, it must be visible.
|
8506 | 8506 | </para>
|
8507 | 8507 |
|
| 8508 | + <indexterm zone="functions-info"> |
| 8509 | + <primary>format_type</primary> |
| 8510 | + </indexterm> |
| 8511 | + |
8508 | 8512 | <indexterm zone="functions-info">
|
8509 | 8513 | <primary>pg_get_viewdef</primary>
|
8510 | 8514 | </indexterm>
|
@@ -8554,6 +8558,11 @@ SELECT pg_type_is_visible('myschema.widget'::regtype);
|
8554 | 8558 | </thead>
|
8555 | 8559 |
|
8556 | 8560 | <tbody>
|
| 8561 | + <row> |
| 8562 | + <entry><literal><function>format_type</function>(<parameter>type_oid</parameter>, <parameter>typemod</>)</literal></entry> |
| 8563 | + <entry><type>text</type></entry> |
| 8564 | + <entry>get SQL name of a data type</entry> |
| 8565 | + </row> |
8557 | 8566 | <row>
|
8558 | 8567 | <entry><literal><function>pg_get_viewdef</function>(<parameter>view_name</parameter>)</literal></entry>
|
8559 | 8568 | <entry><type>text</type></entry>
|
@@ -8643,6 +8652,12 @@ SELECT pg_type_is_visible('myschema.widget'::regtype);
|
8643 | 8652 | </tgroup>
|
8644 | 8653 | </table>
|
8645 | 8654 |
|
| 8655 | + <para> |
| 8656 | + <function>format_type</function> returns the SQL name of a data type that |
| 8657 | + is identified by its type OID and possibly a type modifier. Pass NULL |
| 8658 | + for the type modifier if no specific modifier is known. |
| 8659 | + </para> |
| 8660 | + |
8646 | 8661 | <para>
|
8647 | 8662 | <function>pg_get_viewdef</function>,
|
8648 | 8663 | <function>pg_get_ruledef</function>,
|
|
0 commit comments