Where can I get pldbgapi.sql in order to install the debugger for postgresql?

前端 未结 3 1504
花落未央
花落未央 2021-02-13 17:31

I am trying to install the debugger for postgresql on Linux so I can use pgAdmin to debug my functions. I\'ve set up my postgresql.conf file. However, I can\'t

3条回答
  •  醉梦人生
    2021-02-13 17:59

    Excelent aport, only:

    • Edit your postgresql.conf file, and modify the shared_preload_libraries config option to look like:

      shared_preload_libraries = '$libdir/plugin_debugger'

    • Restart PostgreSQL for the new setting to take effect.

    • Run the following command in the database or databases that you wish to debug functions in:

      CREATE EXTENSION pldbgapi;

    • Restart PostgreSQL for the new setting to take effect. Finally you can debugg!!

    I used in Postgres 9.4

提交回复
热议问题