PG-159: Bucket start time (bucket_start_time) should be aligned with bucket_time.

This commit is contained in:
Ibrar Ahmed
2021-01-11 17:20:27 +00:00
parent 44bab626f1
commit 860de28e6f
3 changed files with 18 additions and 13 deletions

View File

@@ -28,7 +28,7 @@ CREATE FUNCTION pg_stat_monitor(IN showtext boolean,
OUT elevel int,
OUT sqlcode int,
OUT message text,
OUT bucket_start_time timestamptz,
OUT bucket_start_time text,
OUT plans int8,
OUT plan_total_time float8,
@@ -92,7 +92,7 @@ FROM pg_stat_monitor_settings();
-- Register a view on the function for ease of use.
CREATE VIEW pg_stat_monitor AS SELECT
bucket,
bucket_start_time,
bucket_start_time AS bucket_start_time,
userid,
dbid,
'0.0.0.0'::inet + client_ip AS client_ip,