调试需要安装插件
下载pldebugger安装包:
1、安装git
$ yum install git
2、进入数据库安装目录/app/software/postgre/postgresql-12.2/contrib
$ git clone git://git.postgresql.org/git/pldebugger.git
3、进入pldebugger
cd pldebugger
4、编译安装
make USE_PGXS=1
make USE_PGXS=1 install
5、修改配置
cd /app/software/postgre/postgresql-12.2/data
vi postgresql.conf
postgresql.conf 文件内容较多,直接输入/shared_preload_libraries,找到内容
编辑shared_preload_libraries = ‘$libdir/plugin_debugger’ 并删除前面的#
6、重启数据库服务
$ /app/software/postgre/postgresql-12.2/bin/pg_ctl restart -D /app/software/postgre/postgresql-12.2/data/ -m fast
7、目标数据库中安装pldbgapi插件
postgresql12.2安装pldbgapi插件

相关文章:

  • 2021-09-01
  • 2021-12-15
  • 2021-11-12
  • 2021-06-14
  • 2022-12-23
  • 2021-12-15
  • 2021-12-28
  • 2022-12-23
猜你喜欢
  • 2021-11-15
  • 2022-03-04
  • 2022-12-23
  • 2021-08-13
  • 2021-04-07
  • 2021-04-15
  • 2022-12-23
相关资源
相似解决方案