PG-165: Recycle expired buckets.

This commit is contained in:
Ibrar Ahmed
2021-01-14 13:02:04 +00:00
parent 285f3da136
commit 0dea3c4e8f
2 changed files with 16 additions and 2 deletions

View File

@@ -136,7 +136,8 @@ CREATE VIEW pg_stat_monitor AS SELECT
(string_to_array(resp_calls, ',')) resp_calls,
cpu_user_time,
cpu_sys_time
FROM pg_stat_monitor(TRUE), pg_database WHERE dbid = oid;
FROM pg_stat_monitor(TRUE), pg_database WHERE dbid = oid
ORDER BY bucket_start_time;
CREATE FUNCTION decode_error_level(elevel int)
RETURNS text