From 4fdb8cba94eff84d70b2cc1759a0b8389a49aee1 Mon Sep 17 00:00:00 2001 From: onderkalaci Date: Wed, 26 Apr 2023 23:23:25 +0300 Subject: [PATCH] Pg now has its own any_value, see 2ddab010c2777c6a965cea82dc1b809ddc33ecc1 --- src/backend/distributed/sql/udfs/any_value/9.1-1.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/distributed/sql/udfs/any_value/9.1-1.sql b/src/backend/distributed/sql/udfs/any_value/9.1-1.sql index 7eb9fdb25..44b701637 100644 --- a/src/backend/distributed/sql/udfs/any_value/9.1-1.sql +++ b/src/backend/distributed/sql/udfs/any_value/9.1-1.sql @@ -3,12 +3,12 @@ RETURNS anyelement AS $$ SELECT CASE WHEN $1 IS NULL THEN $2 ELSE $1 END; $$ LANGUAGE SQL STABLE; -CREATE AGGREGATE pg_catalog.any_value ( +CREATE AGGREGATE pg_catalog.any_value_citus ( sfunc = pg_catalog.any_value_agg, combinefunc = pg_catalog.any_value_agg, basetype = anyelement, stype = anyelement ); -COMMENT ON AGGREGATE pg_catalog.any_value(anyelement) IS +COMMENT ON AGGREGATE pg_catalog.any_value_citus(anyelement) IS 'Returns the value of any row in the group. It is mostly useful when you know there will be only 1 element.';