加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

在PostgreSQL中理解“LOG:execute S_1:BEGIN”

发布时间:2020-12-13 16:02:28 所属栏目:百科 来源:网络整理
导读:我用’all’打开Postgres日志记录并显示LOG:执行S_1:BEGIN. S_1是什么意思? 解决方法 此日志条目的格式表示使用 extended query protocol. 来自链接的文档: In the extended protocol,the frontend first sends a Parse message, which contains a textu
我用’all’打开Postgres日志记录并显示LOG:执行S_1:BEGIN.

S_1是什么意思?

解决方法

此日志条目的格式表示使用 extended query protocol.

来自链接的文档:

In the extended protocol,the frontend first sends a Parse message,
which contains a textual query string,optionally some information
about data types of parameter placeholders,and the name of a
destination prepared-statement object
(an empty string selects the
unnamed prepared statement)

日志中的S_1对应于该名称.

如果应用程序使用libpq C库或基于它的层,则可以在扩展协议上构建像PQprepare,PQexecPrepared或PQexecParams这样的libpq函数.另一方面,较旧的PQExec仅使用简单查询协议.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读