mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-06 16:02:23 +00:00
Functions live in pg_proc, so a schema changing hands left them behind and a grant on ALL FUNCTIONS disappeared from the drawer on the next read, with no way to revoke it. Read them alongside pg_class, and name them by their identity arguments, which is what tells two of one name apart. ALTER DEFAULT PRIVILEGES binds only the roles it names, so a role created after a 'created later' grant produced tables no one else could read. Replay the rules already in force for each new role.
1.0 MiB
1.0 MiB