From 7a0023688bdcaad4d4f4d07718f0d9746839b5e2 Mon Sep 17 00:00:00 2001 From: Ibrar Ahmed Date: Tue, 3 Dec 2019 08:44:27 +0000 Subject: [PATCH] =?UTF-8?q?Issue=20-=20(#8):=C2=A0=20Fixing=20the=20proble?= =?UTF-8?q?m=20when=20accessing=20pg=5Fstat=5Fmonitor=20host=20column.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When accessing the "host" column, it gives the error in some cases "ERROR:  result is out of range". The patch changes the host datatype from int to bigint. --- pg_stat_monitor--1.0.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pg_stat_monitor--1.0.sql b/pg_stat_monitor--1.0.sql index 762961a..f7469d5 100644 --- a/pg_stat_monitor--1.0.sql +++ b/pg_stat_monitor--1.0.sql @@ -33,7 +33,7 @@ CREATE FUNCTION pg_stat_monitor(IN showtext boolean, OUT temp_blks_written int8, OUT blk_read_time float8, OUT blk_write_time float8, - OUT host int, + OUT host bigint, OUT hist_calls text, OUT hist_min_time text, OUT hist_max_time text,