0
如何將文本postgres錯誤消息轉換爲錯誤代碼?Postgres錯誤代碼
例如:
permission denied for relation table
我如何才能找到它屬於到這裏哪個錯誤代碼? https://www.postgresql.org/docs/current/static/errcodes-appendix.html
如何將文本postgres錯誤消息轉換爲錯誤代碼?Postgres錯誤代碼
例如:
permission denied for relation table
我如何才能找到它屬於到這裏哪個錯誤代碼? https://www.postgresql.org/docs/current/static/errcodes-appendix.html
檢查您的log_line_prefix
設置postgresql.conf
。確保你使用這個%e
選項來記錄你的postgres日誌中的代碼。
%e
= SQL狀態
您還可以使用\set VERBOSITY verbose
在psql
看到詳細的錯誤信息與SQLSTATE
那裏。