Failure during Postgres major version upgrade due to deprecated long_xact funcs

Kered <[email protected]>
Newsgroups gmane.comp.gis.postgis
Message-ID <CABF0PeMo0ffLUruipik=NOJrJTMN82_buO57ekNpnHLR3a2fzA@mail.gmail.com>
Hi there,

I saw postgres upgrade failure with following message (pg16.1 to 17.0,
postgis 3.4.0 to postgis 3.5.0)

pg_restore: creating FUNCTION "public.checkauth("text", "text", "text")"

pg_restore: creating COMMENT "public.FUNCTION "checkauth"("text", "text",
"text")"

pg_restore: creating FUNCTION "public.checkauthtrigger()"

pg_restore: while PROCESSING TOC:

pg_restore: from TOC entry 558; 1255 18735 FUNCTION checkauthtrigger()
pguser

pg_restore: error: could not execute query: ERROR:  could not find function
"check_authorization" in file
"/local/home/pguser/temp/local_pg/installs/pg170/lib/postgresql/postgis-3.so"

Command was: CREATE FUNCTION "public"."checkauthtrigger"() RETURNS "trigger"

    LANGUAGE "c"

    AS '$libdir/postgis-3', 'check_authorization';


-- For binary upgrade, handle extension membership the hard way

ALTER EXTENSION "postgis" ADD FUNCTION "public"."checkauthtrigger"();


(same for GetTransactionID)


I saw a previous ticket https://trac.osgeo.org/postgis/ticket/5723  which
tried to drop it already, but I still see this. Is this expected or
something that was missed during testing?


Best,

Derek
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.