forked from docs/doc-exports
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com> Co-authored-by: luhuayi <luhuayi@huawei.com> Co-committed-by: luhuayi <luhuayi@huawei.com>
59 lines
5.8 KiB
HTML
59 lines
5.8 KiB
HTML
<a name="EN-US_TOPIC_0000001764491524"></a><a name="EN-US_TOPIC_0000001764491524"></a>
|
|
|
|
<h1 class="topictitle1">PG_PREPARED_STATEMENTS</h1>
|
|
<div id="body8662426"><p id="EN-US_TOPIC_0000001764491524__en-us_topic_0059778133_p635171017541"><strong id="EN-US_TOPIC_0000001764491524__b119152035184110">PG_PREPARED_STATEMENTS</strong> displays all prepared statements that are available in the current session.</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0000001764491524__t6f11cadd47a44c028338d0ac307648e1" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PG_PREPARED_STATEMENTS columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001764491524__r9db0b6ed668647b9b29ca777dc19033d"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001764491524__a019351a92bca4997bb676fb4484de692"><strong id="EN-US_TOPIC_0000001764491524__b179110198343657">Column</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.4.1.2"><p id="EN-US_TOPIC_0000001764491524__af6ecd046dd754e70a2be4faea815f640"><strong id="EN-US_TOPIC_0000001764491524__b029816310423">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001764491524__af7c2316d5dbc4ea99350be53a6383959"><strong id="EN-US_TOPIC_0000001764491524__b1788203311428">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0000001764491524__r2303dea2c634445a98245a386e197976"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491524__ab19d7b34618e427e9f06ec1f9a628f76">Name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491524__a3b88fb1ab9a04f4dbc065d93d3a645f0">Text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491524__ab323b7d3d85848aabf560078de85a6b8">Identifier of a prepared statement.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001764491524__rc6354060a0c04fd08b1af0a2b8cc8532"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491524__abc89c03fd10d4b6f94fc8c069bfb65d4">statement</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491524__a2c031a7253444bb182a3ec5b52d7a760">Text</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491524__aaab2eaf09e9e40cfa512c0432e47e070">Query string for creating this prepared statement. For prepared statements created through SQL, this is the <strong id="EN-US_TOPIC_0000001764491524__b8744161218437">PREPARE</strong> statement submitted by the client. For prepared statements created through the frontend/backend protocol, this is the text of the prepared statement itself.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001764491524__r1ed064cb69844c399c82a6b707a5b9df"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491524__aaa8d97b0d5d84ae3b1b1e1f392161067">prepare_time</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491524__ab5db8a81b86345abb019d44da85283b4">Timestamp with time zone</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491524__ab2e37399d5114ed59ebe117c7db946b8">Timestamp when the prepared statement is created.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001764491524__r140bbc3d25534de2876a54dc5e4c5f79"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491524__a35b4523c1472498aa10ad41dbca1356d">parameter_types</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491524__a6e406322e80a43bba563545f6a68cd1c">regtype[]</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001764491524__aba37c45e00504b02aeab7e63a4f03174">Expected parameter types for the prepared statement in the form of an array of <strong id="EN-US_TOPIC_0000001764491524__b122388530811235">regtype</strong>. The OID corresponding to an element of this array can be obtained by casting the regtype value to oid.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0000001764491524__r987a58d47e59458c9e483840978eef16"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001764491524__a6a07d36006e846e1ba69fe048b38a502">from_sql</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001764491524__a36900834cb0b4477bc35d3d2b8f7ac95"><span id="EN-US_TOPIC_0000001764491524__text778744113615">boolean</span></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><ul id="EN-US_TOPIC_0000001764491524__uc2e7523622374bfe9dd4f12c78b56447"><li id="EN-US_TOPIC_0000001764491524__la5e39686aef94dd6b1e769625cc4edb4">The value is <strong id="EN-US_TOPIC_0000001764491524__b186221041104511">true</strong> if the prepared statement is created using the <strong id="EN-US_TOPIC_0000001764491524__b1558675534512">PREPARE</strong> statement.</li><li id="EN-US_TOPIC_0000001764491524__l5d10a46e550b4555a630c3719729e8ac">The value is <strong id="EN-US_TOPIC_0000001764491524__b124630617461">false</strong> if the instance is created using the frontend/backend protocol.</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dws_04_0639.html">System Views</a></div>
|
|
</div>
|
|
</div>
|
|
|