gooderp18绿色标准版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
5.2KB

  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>51.77. pg_prepared_statements</title><link rel="stylesheet" type="text/css" href="stylesheet.css" /><link rev="made" href="pgsql-docs@lists.postgresql.org" /><meta name="generator" content="DocBook XSL Stylesheets V1.79.1" /><link rel="prev" href="view-pg-policies.html" title="51.76. pg_policies" /><link rel="next" href="view-pg-prepared-xacts.html" title="51.78. pg_prepared_xacts" /></head><body><div xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="5" align="center">51.77. <code xmlns="http://www.w3.org/1999/xhtml" class="structname">pg_prepared_statements</code></th></tr><tr><td width="10%" align="left"><a accesskey="p" href="view-pg-policies.html" title="51.76. pg_policies">Prev</a> </td><td width="10%" align="left"><a accesskey="u" href="catalogs.html" title="Chapter 51. System Catalogs">Up</a></td><th width="60%" align="center">Chapter 51. System Catalogs</th><td width="10%" align="right"><a accesskey="h" href="index.html" title="PostgreSQL 12.4 Documentation">Home</a></td><td width="10%" align="right"> <a accesskey="n" href="view-pg-prepared-xacts.html" title="51.78. pg_prepared_xacts">Next</a></td></tr></table><hr></hr></div><div class="sect1" id="VIEW-PG-PREPARED-STATEMENTS"><div class="titlepage"><div><div><h2 class="title" style="clear: both">51.77. <code class="structname">pg_prepared_statements</code></h2></div></div></div><a id="id-1.10.4.79.2" class="indexterm"></a><p>
  3. The <code class="structname">pg_prepared_statements</code> view displays
  4. all the prepared statements that are available in the current
  5. session. See <a class="xref" href="sql-prepare.html" title="PREPARE"><span class="refentrytitle">PREPARE</span></a> for more information about prepared
  6. statements.
  7. </p><p>
  8. <code class="structname">pg_prepared_statements</code> contains one row
  9. for each prepared statement. Rows are added to the view when a new
  10. prepared statement is created and removed when a prepared statement
  11. is released (for example, via the <a class="xref" href="sql-deallocate.html" title="DEALLOCATE"><span class="refentrytitle">DEALLOCATE</span></a> command).
  12. </p><div class="table" id="id-1.10.4.79.5"><p class="title"><strong>Table 51.78. <code class="structname">pg_prepared_statements</code> Columns</strong></p><div class="table-contents"><table class="table" summary="pg_prepared_statements Columns" border="1"><colgroup><col /><col /><col /></colgroup><thead><tr><th>Name</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td><code class="structfield">name</code></td><td><code class="type">text</code></td><td>
  13. The identifier of the prepared statement
  14. </td></tr><tr><td><code class="structfield">statement</code></td><td><code class="type">text</code></td><td>
  15. The query string submitted by the client to create this
  16. prepared statement. For prepared statements created via SQL,
  17. this is the <code class="command">PREPARE</code> statement submitted by
  18. the client. For prepared statements created via the
  19. frontend/backend protocol, this is the text of the prepared
  20. statement itself.
  21. </td></tr><tr><td><code class="structfield">prepare_time</code></td><td><code class="type">timestamptz</code></td><td>
  22. The time at which the prepared statement was created
  23. </td></tr><tr><td><code class="structfield">parameter_types</code></td><td><code class="type">regtype[]</code></td><td>
  24. The expected parameter types for the prepared statement in the
  25. form of an array of <code class="type">regtype</code>. The OID corresponding
  26. to an element of this array can be obtained by casting the
  27. <code class="type">regtype</code> value to <code class="type">oid</code>.
  28. </td></tr><tr><td><code class="structfield">from_sql</code></td><td><code class="type">boolean</code></td><td>
  29. <code class="literal">true</code> if the prepared statement was created
  30. via the <code class="command">PREPARE</code> SQL command;
  31. <code class="literal">false</code> if the statement was prepared via the
  32. frontend/backend protocol
  33. </td></tr></tbody></table></div></div><br class="table-break" /><p>
  34. The <code class="structname">pg_prepared_statements</code> view is read only.
  35. </p></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="view-pg-policies.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="catalogs.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="view-pg-prepared-xacts.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">51.76. <code class="structname">pg_policies</code> </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> 51.78. <code class="structname">pg_prepared_xacts</code></td></tr></table></div></body></html>
上海开阖软件有限公司 沪ICP备12045867号-1