postgresql 可调试

在用postgresql的时候需要经常需要对存储过程进行调试,那么怎么样设置postgresql可调试呢?

1.已管理员身份登陆postgresql,单击工具-->服务器配置-->postgresql.conf.

postgresql 可调试

2.在弹出的配置窗口中,双击shared_preload_libraries选项

postgresql 可调试

3.在弹出的配置设置shared_debugger.dll对话框中,旋转启用选项,设置值为"$libdir/plugin_debugger.dll"

postgresql 可调试

4.在设定完成之后,重新启动postgresql服务。

5.在需要调试的数据库中新建扩展,选择"pldbgapi"

postgresql 可调试

6.在需要调试的函数上右击,就会出现调试菜单了