1
所以我明白,所有會讓我選擇我想監視我的應用程序,但是,POSTGRES守護進程正在運行一個自己的選擇對數據庫並且它記錄它...日誌記錄= Ubuntu上的PostgresSQL 9.5的所有問題16.04
有誰知道如何避免這個作爲我的日誌將得到填補,而迅速
LOG: statement: SELECT
(SELECT sum(xact_commit) + sum(xact_rollback) FROM pg_stat_database WHERE datname = (SELECT datname FROM pg_database WHERE oid = 16384)) AS "Transactions",
(SELECT sum(xact_commit) FROM pg_stat_database WHERE datname = (SELECT datname FROM pg_database WHERE oid = 16384)) AS "Commits",
(SELECT sum(xact_rollback) FROM pg_stat_database WHERE datname = (SELECT datname FROM pg_database WHERE oid = 16384)) AS "Rollbacks"
2017-01-09 23:53:36 UTC [14264-16] [email protected] LOG: statement: SELECT
(SELECT sum(xact_commit) + sum(xact_rollback) FROM pg_stat_database WHERE datname = (SELECT datname FROM pg_database WHERE oid = 16384)) AS "Transactions",
(SELECT sum(xact_commit) FROM pg_stat_database WHERE datname = (SELECT datname FROM pg_database WHERE oid = 16384)) AS "Commits",
(SELECT sum(xact_rollback) FROM pg_stat_database WHERE datname = (SELECT datname FROM pg_database WHERE oid = 16384)) AS "Rollbacks"
2017-01-09 23:53:37 UTC [14264-17] [email protected] LOG: statement: SELECT
(SELECT sum(xact_commit) + sum(xact_rollback) FROM pg_stat_database WHERE datname = (SELECT datname FROM pg_database WHERE oid = 16384)) AS "Transactions",
(SELECT sum(xact_commit) FROM pg_stat_database WHERE datname = (SELECT datname FROM pg_database WHERE oid = 16384)) AS "Commits",
(SELECT sum(xact_rollback) FROM pg_stat_database WHERE datname = (SELECT datname FROM pg_database WHERE oid = 16384)) AS "Rollbacks"
2017-01-09 23:53:38 UTC [14264-18] [email protected] LOG: statement: SELECT
(SELECT sum(xact_commit) + sum(xact_rollback) FROM pg_stat_database WHERE datname = (SELECT datname FROM pg_database WHERE oid = 16384)) AS "Transactions",
(SELECT sum(xact_commit) FROM pg_stat_database WHERE datname = (SELECT datname FROM pg_database WHERE oid = 16384)) AS "Commits",
(SELECT sum(xact_rollback) FROM pg_stat_database WHERE datname = (SELECT datname FROM pg_database WHERE oid = 16384)) AS "Rollbacks"
2017-01-09 23:53:39 UTC [14264-19] [email protected] LOG: statement: SELECT
(SELECT sum(xact_commit) + sum(xact_rollback) FROM pg_stat_database WHERE datname = (SELECT datname FROM pg_database WHERE oid = 16384)) AS "Transactions", ....
...
...
嗯,這似乎是太容易了,這可能是爲什麼我沒有找到在interweb什麼...非常感謝 – CBERBER
你應該接受這個答案是正確的http://stackoverflow.com /幫助/人,答案 – e4c5