Skip to content

Commit

Permalink
Turn off stats without superuser access
Browse files Browse the repository at this point in the history
  • Loading branch information
fantix committed Oct 17, 2024
1 parent 023935c commit 9abe973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion edb/pgsql/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def has_create_database(self) -> bool:

@property
def has_stat_statements(self) -> bool:
return bool(
return self.has_superuser_access and bool(
self.instance_params.capabilities
& BackendCapabilities.STAT_STATEMENTS
)
Expand Down

0 comments on commit 9abe973

Please sign in to comment.