PostgreSQL 16 multi-grantor memberships need deterministic reconciliation
Parent: #627
PostgreSQL 16 and newer can retain separate membership rows/options by grantor. Collapsing those rows with bool_or loses the grantor that supplies an option.
Reproduced on PostgreSQL 16, 17, and 18:
- Two grantors grant the same role membership.
- One row supplies an option such as ADMIN, INHERIT, or SET.
- Desired state requires that option to be false.
- Plan and apply through a grantor that cannot remove the competing row.
Observed: inspection reports one merged membership, planning accepts the change, and a single GRANT/REVOKE cannot converge the other grantor's option. Replanning remains non-zero.
Required behavior: inspect grantor rows and either reconcile every authoritative row or reject competing grants deterministically before mutation. PostgreSQL 15 is unaffected because these per-grant option rows are a 16+ behavior.
Tracked under #627. A proposed implementation is in #637, which is still under discussion. Closing this sub-issue since it is covered by the #627 umbrella.