[BUG] pg_upgrade test fails from older versions. - Mailing list pgsql-hackers

From Anton A. Melnikov
Subject [BUG] pg_upgrade test fails from older versions.
Date
Msg-id 49f389ba-95ce-8a9b-09ae-f60650c0e7c7@inbox.ru
Whole thread Raw
Responses Re: [BUG] pg_upgrade test fails from older versions.  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: [BUG] pg_upgrade test fails from older versions.  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
Hello!

Found that pg_upgrade test has broken for upgrades from older versions.
This happened for two reasons.
1) In 7b378237a the format of "aclitem" changed so upgrade from <=15
fails with error:
"Your installation contains the "aclitem" data type in user tables.
The internal format of "aclitem" changed in PostgreSQL version 16
so this cluster cannot currently be upgraded... "

Tried to fix it by changing the column type in the upgrade_adapt.sql.
Please see the patch attached.

2) In 60684dd83 and b5d63824 there are two changes in the set of specific privileges.
The thing is that in the privileges.sql test there is REVOKE DELETE command
which becomes pair of REVOKE ALL and GRANT all specific privileges except DELETE
in the result dump. Therefore, any change in the set of specific privileges will lead to
a non-zero dumps diff.
To avoid this, i propose to replace any specific GRANT and REVOKE in the result dumps with ALL.
This also made in the patch attached.

Would be glad to any remarks.

With best regards,

-- 
Anton A. Melnikov
Postgres Professional: http://www.postgrespro.com
The Russian Postgres Company
Attachment

pgsql-hackers by date:

Previous
From: "Shinoda, Noriyoshi (PN Japan FSIP)"
Date:
Subject: RE: pg_upgrade: Make testing different transfer modes easier
Next
From: "Anton A. Melnikov"
Date:
Subject: Re: [PATCH] Backport perl tests for pg_upgrade from 322becb60