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