Rewrite previous commit's test for TestUpgradeXversion compatibility.

Noah Misch <noah@leadboat.com>

Commit: 22c6a44f01fd751c2ed229be4003f7c26d671933
Author: Noah Misch <noah@leadboat.com>
Date: 2025-08-23T23:46:25Z
Releases: 14.20
Rewrite previous commit's test for TestUpgradeXversion compatibility.

v17 introduced the MAINTAIN ON TABLES privilege.  That changed the
applicable "baseacls" reaching buildACLCommands().  That yielded
spurious TestUpgradeXversion diffs.  Change to use a TYPES privilege.
Types have the same one privilege in all supported versions, so they
avoid the problem.  Per buildfarm.  Back-patch to v13, like that commit.

Discussion: https://postgr.es/m/20250823144505.88.nmisch@google.com
Backpatch-through: 13

Files

Discussion