pgschema icon indicating copy to clipboard operation
pgschema copied to clipboard

Use collision-free identities for global role and privilege tuples

Open Goldziher opened this issue 1 month ago • 1 comments

Parent: #627

PostgreSQL identifiers may legally contain /, but global-state tuple keys are constructed by joining fields with / and later parsed with a first-delimiter split.

Reproduced with quoted role names containing /: distinct membership, ownership, or default-privilege tuples can produce the same key, and authority lookup can truncate the granted role name.

Required behavior: use structured comparable keys internally, or a collision-free encoding that never parses user identifiers from a delimiter-joined string. Add quoted-identifier tests for every tuple type and saved-plan fingerprinting.

Goldziher avatar Oct 09 '26 09:10 Goldziher

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.

tianzhou avatar Oct 15 '26 03:10 tianzhou