fix: the reseed probe measures only the databases repl may connect to (keel#183) #185
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Keel-Linux/keel!185
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/pg-reseed-probe-connect-183"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes #183.
The reseed probe of a PostgreSQL standby summed
pg_database_size()over every database as the rolerepl. That function needs CONNECT on the database. An application database withREVOKE CONNECT ... FROM PUBLIC(the keel-lnpp check database had it) stopped every reseed: "permission denied for database keel_check".What changes:
PROBE_SQLsums the size withFILTER (WHERE has_database_privilege(oid, 'CONNECT'))and counts the databases it leaves out.pg_read_all_statsis not granted torepl(more read access than the reseed needs).Tests:
postgres / trixie): the shop database revokes CONNECT from PUBLIC before case (d), so the real reseed runs against such a database.f 2 7689907 1.keel 0.23.33.
navigator referenced this pull request2026-10-16 07:12:49 -03:00