The debugger may be used to debug PL/pgSQL functions in PostgreSQL, as well as EDB-SPL functions, stored procedures and packages in EDB Postgres Advanced Server. The pldebugger is available as an extension for your PostgreSQL database.
For this guide we have already set up PostgreSQL version 12 on a CentOS 7. These instructions can also be applied if you are running an earlier or later release of PostgreSQL in your environment.
Install Prerequisites
If you are running CentOS 7, you can install prerequisites with below command:
For CentOS 8, you can install prerequisites with below command:
Clone pldebugger
Type below command to clone pldebugger from official repository:
Install pldebugger
You must be root to perform below pldebugger installation steps:
You will see the output similar to the following:
Type below to install pldebugger:
Next, edit postgresql.conf file with any of your favorite text editor:
Locate the following parameter, uncomment, add 'plugin_debugger' as its value:Save and close the editor when you are finished.
Now restart PostgreSQL to take changes into effect:
Install pldbgapi extension
You need to switch to postgres user to connect to a PostgreSQL database, you would like to enable debugging:
Type below on postgres=# prompt to install the pldbgapi extension: Type below to exit from postgres=# prompt:
Wrapping up
You now have successfully installed pldebugger for your PostgreSQL database on a CentOS 7.
No comments: