How to debug postgresql stored procedures?

后端 未结 3 1259
梦毁少年i
梦毁少年i 2020-12-23 16:33

I realize that there is nothing similar to SQL Server Management Studio, so I am mentally prepared to use the good old printf debugging.

The only question is how to

3条回答
  •  清歌不尽
    2020-12-23 17:20

    Along with the trusty ol' RAISE commands, there are also a couple 3rd-party tools that I have heard of, though I've never used them.

    • PLPGSQL Lint: https://github.com/okbob/plpgsql_lint
    • EDB Debugger: http://www.enterprisedb.com/docs/en/9.0/asguide/Postgres_Plus_Advanced_Server_Guide-17.htm. My understanding is that the EnterpriseDB Debugger comes bundled with their Postgres Studio package.

提交回复
热议问题