Skip to content

pg_sphere 1.5.1 caused postgresql 16 to postgresql 17 pg_upgrade failure. #137

@zjworacle

Description

@zjworacle

The error is:
`pg_restore: creating OPERATOR "public.@"
pg_restore: while PROCESSING TOC:
pg_restore: from TOC entry 4992; 2617 5984041 OPERATOR @ postgres
pg_restore: error: could not execute query: ERROR: commutator operator @> is already the commutator of operator <@
Command was: CREATE OPERATOR "public".@ (
FUNCTION = "public"."healpix_subset_smoc",
LEFTARG = bigint,
RIGHTARG = "public"."smoc",
COMMUTATOR = OPERATOR("public".@>),
NEGATOR = OPERATOR("public".!<@),
RESTRICT = "contsel",
JOIN = "contjoinsel"
);

-- For binary upgrade, handle extension membership the hard way
ALTER EXTENSION "pg_sphere" ADD OPERATOR "public".@ (bigint, "public"."smoc");`

The problem looks caused by stricter commutator check.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions