fixup! fix array_cat_agg for pg upgrades

talha_testpg14
Sait Talha Nisanci 2021-08-27 09:39:40 +03:00
parent 868f771672
commit 4eaae02549
2 changed files with 20 additions and 0 deletions

View File

@ -24,6 +24,16 @@ BEGIN
$cmd$;
END IF;
/*
* Citus creates the array_cat_agg but because of a compatibility
* issue between pg13-pg14, we drop and create it during upgrade.
* And as Citus creates it, there needs to be a dependency to the
* Citus extension, so we create that dependency here.
* We are not using:
* ALTER EXENSION citus DROP/CREATE AGGREGATE array_cat_agg
* because we don't have an easy way to check if the aggregate
* exists with anyarray type or anycompatiblearray type.
*/
INSERT INTO pg_depend
SELECT
'pg_proc'::regclass::oid as classid,

View File

@ -24,6 +24,16 @@ BEGIN
$cmd$;
END IF;
/*
* Citus creates the array_cat_agg but because of a compatibility
* issue between pg13-pg14, we drop and create it during upgrade.
* And as Citus creates it, there needs to be a dependency to the
* Citus extension, so we create that dependency here.
* We are not using:
* ALTER EXENSION citus DROP/CREATE AGGREGATE array_cat_agg
* because we don't have an easy way to check if the aggregate
* exists with anyarray type or anycompatiblearray type.
*/
INSERT INTO pg_depend
SELECT
'pg_proc'::regclass::oid as classid,