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

前端 未结 3 1515
花落未央
花落未央 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:56

    This is included with EnterpriseDB distributive. You can download it on pgFoundry. here is a link

    Also git repo is available.

    git clone git://git.postgresql.org/git/pldebugger.git
    cd pldebugger
    export USE_PGXS=1
    make
    make install
    

    Edit postgresql.conf

    vim /path/to/postgresql.conf
    

    add:

    shared_preload_libraries = 'plugin_debugger'
    

    Restart postgres, connect to db and call:

    CREATE EXTENSION pldbgapi;
    

    I use it on postgreql 9.5, works well.

提交回复
热议问题