postgresql - 什么是准备好的陈述?

标签 postgresql

我在 postgres pg_log 目录的 .log 文件中看到一堆行,内容如下:

ERROR: prepared statement "pdo_pgsql_stmt_09e097f4" does not exist

什么是准备好的语句,什么样的事情会导致显示这些错误消息?

最佳答案

来自 the documentation :

A prepared statement is a server-side object that can be used to optimize performance. When the PREPARE statement is executed, the specifie statement is parsed, rewritten, and planned. When an EXECUTE command is subsequently issued, the prepared statement need only be executed. Thus, the parsing, rewriting, and planning stages are only performed once, instead of every time the statement is executed.

通过网络搜索,我发现“pdo_pgsql_stmt”命令来自某种 PHP 连接到您的数据库。也许this link可以帮助您找到合适的邮件列表或问题跟踪器,您可以将错误消息发送到该邮件列表或问题跟踪器吗?


编辑:我想我在这里发现了你的错误:

http://bugs.php.net/bug.php?id=37870

关于postgresql - 什么是准备好的陈述?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54955/

相关文章:

hibernate - Spring + Hibernate + Postgresql readOnly Transaction,按需保存

mongodb - PostgreSQL 相当于 MongoDB 中的 Oplog Tailing

postgresql - 为远程服务器 pyqt 设置主机名

ruby-on-rails - 使用 Rails 4 和 postgres 查询范围内日期的最简单方法是什么?

postgresql - 如何在 Postgresql 中进行 "case-insensitive"查询?

postgresql:在指定位置创建数据库

sql - 合并具有相同列名的两个表,添加计数器

sql - VACUUM ANALYZE 后释放存储空间

sql - Postgres : average user response time from interaction with a bot

php - 将 BYTEA 绑定(bind)到 PHP5 中的 PGSQL PDO 准备语句