mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Add result_types column to pg_prepared_statements view
Containing the types of the columns returned by the prepared statement. Prompted by question from IRC user mlvzk. Author: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org> Discussion: https://www.postgresql.org/message-id/flat/871qwpo7te.fsf@wibble.ilmari.org
This commit is contained in:
@ -11502,6 +11502,18 @@ SELECT * FROM pg_locks pl LEFT JOIN pg_prepared_xacts ppx
|
||||
</para></entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry role="catalog_table_entry"><para role="column_definition">
|
||||
<structfield>result_types</structfield> <type>regtype[]</type>
|
||||
</para>
|
||||
<para>
|
||||
The types of the columns returned by the prepared statement in the
|
||||
form of an array of <type>regtype</type>. The OID corresponding
|
||||
to an element of this array can be obtained by casting the
|
||||
<type>regtype</type> value to <type>oid</type>.
|
||||
</para></entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry role="catalog_table_entry"><para role="column_definition">
|
||||
<structfield>from_sql</structfield> <type>bool</type>
|
||||
|
Reference in New Issue
Block a user