Skip to content

Citus upgrade faillure #8016

@parameswara001

Description

@parameswara001

I am upgrading citus cluster upgrade from PG15 to PG17. after pg_upgrade got completed but when i am doing "select citus_finish_pg_upgrade() " function got the following error.

citus=# SELECT citus_finish_pg_upgrade();
ERROR:  function "array_cat_agg" already exists with same argument types
CONTEXT:  SQL statement "
        -- disable propagation to prevent EnsureCoordinator errors
        -- the aggregate created here does not depend on Citus extension (yet)
        -- since we add the dependency with the next command
        SET citus.enable_ddl_propagation TO OFF;
        CREATE AGGREGATE array_cat_agg(anycompatiblearray) (SFUNC = array_cat, STYPE = anycompatiblearray);
        COMMENT ON AGGREGATE array_cat_agg(anycompatiblearray)
        IS 'concatenate input arrays into a single array';
        RESET citus.enable_ddl_propagation;
    "
PL/pgSQL function citus_finish_pg_upgrade() line 8 at EXECUTE

and one more is the following error

citus=# SELECT citus_finish_pg_upgrade();
ERROR:  more than one row returned by a subquery used as an expression
CONTEXT:  SQL statement "INSERT INTO pg_depend
    SELECT
        'pg_proc'::regclass::oid as classid,
        (SELECT oid FROM pg_proc WHERE proname = 'array_cat_agg') as objid,
        0 as objsubid,
        'pg_extension'::regclass::oid as refclassid,
        (select oid from pg_extension where extname = 'citus') as refobjid,
        0 as refobjsubid ,
        'e' as deptype"
PL/pgSQL function citus_finish_pg_upgrade() line 36 at SQL statement

Can you help me to resolve this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions