From a27a3798aadc47e182ec2f17c176e4bf627a02f0 Mon Sep 17 00:00:00 2001 From: Ibrar Ahmed Date: Mon, 15 Feb 2021 17:23:44 +0000 Subject: [PATCH] PG-178: CI with github for PostgreSQL-11 and 12. --- pg_stat_monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pg_stat_monitor.c b/pg_stat_monitor.c index f337fa4..314d381 100644 --- a/pg_stat_monitor.c +++ b/pg_stat_monitor.c @@ -404,7 +404,7 @@ pgss_ExecutorRun(QueryDesc *queryDesc, ScanDirection direction, uint64 count, if(nested_level + 1 >= cur_max_nested_level) { cur_max_nested_level *= 2; - nested_queryids = realloc(nested_queryids, cur_max_nested_level); + nested_queryids = repalloc(nested_queryids, cur_max_nested_level); } nested_level++; PG_TRY();