↑↓ 选择↵ 打开⌫ 切换范围完整搜索

PG.CENTER 连接 PostgreSQL 文档、百科与生态知识。由 Pigsty 维护。

支持中的版本: 当前版本 (18) / 17 / 16 / 15 / 14
开发中的版本: 19 / 20devel
已结束支持的版本: 13 / 12 / 11 / 10 / 9.6 / 9.5 / 9.4 / 9.3 / 9.2 / 9.1 / 9.0 / 8.4 / 8.3 / 8.2
历史版本。 PostgreSQL 9.1 已结束支持。 2016-10-27. 请参阅 当前版本手册.

45.57. pg_prepared_statements #

pg_prepared_statements 视图显示当前会话中所有可用的预备语句。关于预备语句的更多信息,参见PREPARE。

pg_prepared_statements 为每个预备语句包含一行。创建新的预备语句时,会向该视图添加一行;释放预备语句时(例如通过DEALLOCATE命令)则会移除该行。

表 45.58. pg_prepared_statements 列

NameTypeDescription
nametext The identifier of the prepared statement
statementtext The query string submitted by the client to create this prepared statement. For prepared statements created via SQL, this is the PREPARE statement submitted by the client. For prepared statements created via the frontend/backend protocol, this is the text of the prepared statement itself.
prepare_timetimestamptz The time at which the prepared statement was created
parameter_typesregtype[] The expected parameter types for the prepared statement in the form of an array of regtype. The OID corresponding to an element of this array can be obtained by casting the regtype value to oid.
from_sqlboolean true if the prepared statement was created via the PREPARE SQL statement; false if the statement was prepared via the frontend/backend protocol

pg_prepared_statements视图是只读的。

报告文档问题

阅读 上游文档. 反馈更正前请先核对 当前版本手册.