How to debug postgresql stored procedures?

后端 未结 3 1248
梦毁少年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:25

    It sounds like you're looking for actual debugging capability. PostgreSQL actually introduced this functionality starting with PostgreSQL 8.3.

    It's fantastic and totally makes PostgreSQL live up to it's tagline "the world's most advanced open source database". It's kind of a hassle to get running but these links might help get you started. Once enabled it allows you to set breakpoints or define inputs & evaluate functions all through a handy right-click menu in PGAdmin.

提交回复
热议问题