1. D:\postgreSQL\data\postgresql.conf 文件中
#shared_preload_libraries = '' # (change requires restart)
改为
#shared_preload_libraries = '$libdir/plugin_debugger.dll' # (change requires restart)
2.重启服务
3. CREATE EXTENSION IF NOT EXISTS pldbgapi;
4.只能在以超级用户帐户身份运行时进行调试、只能调试pl / pgsql函数。因此,如果函数说的是LANGUAGE cPGAdmin之类的内容,选择该函数时甚至不会显示右键单击“调试”菜单选项。查找具有的内容,LANGUAGE plpgsql然后将显示“调试”菜单
http://www.yuanmacha.com/18472524256.html
https://www.pgadmin.org/docs/pgadmin4/development/debugger.html