現在可以使用 JSON 格式輸出 PostgreSQL 日誌,方法是在設定 log_destination 時使用 jsonlog 參數。 這提供了「結構化日誌」,可供其他工具用於儲存和分析。
log_destination
jsonlog