我正在尝试调试访问 postgres 数据库的 C 程序。
我想使用一些 postgres 提供的例程转储 PGresult 的内容。
是否有 postgres 提供的例程以人类可读的方式转储 PGresult?
我会将其作为一个选项添加到将转储 PGresult 内容的日志记录中。
这是非 SELECT 命令的相关问题: How to dump PGresult for non-SELECT commands
最佳答案
在src/interfaces/libpq/fe-print.c
中有一个公共(public)函数PQprint
;这是in the manual .
关于c - 如何转储 PGresult,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32213441/