doc-exports/docs/dws/dev/dws_04_0741.html
Lu, Huayi e6fa411af0 DWS DEV 830.201 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Lu, Huayi <luhuayi@huawei.com>
Co-committed-by: Lu, Huayi <luhuayi@huawei.com>
2024-05-16 07:24:04 +00:00

60 lines
5.5 KiB
HTML

<a name="EN-US_TOPIC_0000001233681815"></a><a name="EN-US_TOPIC_0000001233681815"></a>
<h1 class="topictitle1">PG_PREPARED_STATEMENTS</h1>
<div id="body8662426"><p id="EN-US_TOPIC_0000001233681815__en-us_topic_0059778133_p635171017541"><strong id="EN-US_TOPIC_0000001233681815__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_0000001233681815__tda497608a7fd4250b4a7166a69d54a83" frame="border" border="1" rules="all"><caption><b>Table 1 </b>PG_PREPARED_STATEMENTS columns</caption><thead align="left"><tr id="EN-US_TOPIC_0000001233681815__r245214919afb432194f256a61d58cfe1"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.2.4.1.1"><p id="EN-US_TOPIC_0000001233681815__a64c3661ef99a4c2c8bc1262ddf14ef13"><strong id="EN-US_TOPIC_0000001233681815__b84235270691445">Name</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_0000001233681815__afdf13d52ddc04110b3e3d0ac9a831b87">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.2.2.4.1.3"><p id="EN-US_TOPIC_0000001233681815__a4a5d64b7ab0241b085ef507810c1c7de">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0000001233681815__r48a9cd5a397f4dffadbad2884b938154"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233681815__a9173c68d493047b9bd5f5edebb6dac64">name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233681815__abd900f713e1f4553a630c5a44e73e8f5">text</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233681815__aa9981189c21c4e3d9cc22ea4539c0e39">Identifier of the prepared statement</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233681815__r6d7ac29d205f47a09019d59d9c48f4f8"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233681815__a24026af554a1444b8f80c46a1239df63">statement</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233681815__a46205f90bf9049118a37abfabc5b4e06">text</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233681815__aae762187fb1545979bf09403ecd75a04">Query string for creating this prepared statement For prepared statements created through SQL, this is the PREPARE 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_0000001233681815__reda43236067048eba5de4ea7943b425e"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233681815__a595aac6dc32146aaab95577f69b56108">prepare_time</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233681815__ab9eb8f8e0fff497ba984b6dc4deebd84">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_0000001233681815__aab1aae21e55447d9b8d8b7220bf431bb">Timestamp when the prepared statement is created</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0000001233681815__rf495870549d84a5aa1b47098832f1bed"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233681815__a940087130c394aff90d5bead04da7250">parameter_types</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233681815__ab137fe6b1ce9440e9ce56649b0dcbbdf">regtype[]</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233681815__ac6a26cd32c0f4579856862645e22e1ae">Expected parameter types for the prepared statement in the form of an array of <strong>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_0000001233681815__r731dc14b00694477923306dcfdd67fa1"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.1 "><p id="EN-US_TOPIC_0000001233681815__a82aec8538879474e9de11ae61919ca88">from_sql</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.2.4.1.2 "><p id="EN-US_TOPIC_0000001233681815__a87aafdac6b10468495d95c45cede9915"><span id="EN-US_TOPIC_0000001233681815__text778744113615">boolean</span></p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.2.2.4.1.3 "><p id="EN-US_TOPIC_0000001233681815__p342339173720">How a prepared statement was created</p>
<ul id="EN-US_TOPIC_0000001233681815__u96ef9053fe864a6ab4e4e6d37a041150"><li id="EN-US_TOPIC_0000001233681815__l4b3e156ba9f94d87966a20e18d593ffc"><strong id="EN-US_TOPIC_0000001233681815__b48859686173741">true</strong>: The prepared statement was created through the PREPARE statement.</li><li id="EN-US_TOPIC_0000001233681815__l5e6d78445b824a0784216e55b3c3f631"><strong id="EN-US_TOPIC_0000001233681815__b33493934173747">false</strong> The statement was prepared through 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>