We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3a249b commit 316e332Copy full SHA for 316e332
src/charm.py
@@ -2458,9 +2458,16 @@ def relations_user_databases_map(self) -> dict:
2458
return {USER: "all", REPLICATION_USER: "all", REWIND_USER: "all"}
2459
user_database_map = {}
2460
try:
2461
- for user in self.postgresql.list_users_from_relation(
2462
- current_host=self.is_connectivity_enabled
2463
- ):
+ for user in self.postgresql.list_users(current_host=self.is_connectivity_enabled):
+ if user in (
+ "backup",
2464
+ "monitoring",
2465
+ "operator",
2466
+ "postgres",
2467
+ "replication",
2468
+ "rewind",
2469
+ ):
2470
+ continue
2471
user_database_map[user] = ",".join(
2472
self.postgresql.list_accessible_databases_for_user(
2473
user, current_host=self.is_connectivity_enabled
0 commit comments