https://www.postgresql.org/docs/current/runtime-config-replication.html#GUC-TRACK-COMMIT-TIMESTAMP
track_commit_timestamp (boolean) 記錄事務的提交時間。
此引數只能在 postgresql.conf 檔案或服務器命令列中設定。默認值為關閉。
show track_commit_timestamp;回傳。
如何在psql中開啟?
uj5u.com熱心網友回復:
您可以ALTER SYSTEM作為超級用戶使用:
ALTER SYSTEM SET track_commit_timestamp = on;
-- tell PostgreSQL you modified the configuration
SELECT pg_reload_conf();
這相當于postgresql.conf使用pg_ctl reload.
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/337135.html
標籤:PostgreSQL 查询语句
