You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-7Lines changed: 11 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -194,12 +194,14 @@ Every PostgresUser has a generated Kubernetes secret attached to it, which conta
194
194
| Key | Comment |
195
195
|----------------------|---------------------|
196
196
| `DATABASE_NAME` | Name of the database, same as in `Postgres` CR, copied for convenience |
197
-
| `HOST` | PostgreSQL server host |
197
+
| `HOST` | PostgreSQL server host (including port number) |
198
198
| `PASSWORD` | Autogenerated password for user |
199
199
| `ROLE` | Autogenerated role with login enabled (user) |
200
200
| `LOGIN` | Same as `ROLE`. In case `POSTGRES_CLOUD_PROVIDER` is set to "Azure", `LOGIN` it will be set to `{role}@{serverName}`, serverName is extracted from `POSTGRES_USER` from operator's config. |
201
201
| `POSTGRES_URL` | Connection string for Posgres, could be used for Go applications |
Copy file name to clipboardExpand all lines: pkg/postgres/database.go
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ const (
16
16
GRANT_USAGE_SCHEMA=`GRANT USAGE ON SCHEMA "%s" TO "%s"`
17
17
GRANT_CREATE_TABLE=`GRANT CREATE ON SCHEMA "%s" TO "%s"`
18
18
GRANT_ALL_TABLES=`GRANT %s ON ALL TABLES IN SCHEMA "%s" TO "%s"`
19
-
DEFAULT_PRIVS_SCHEMA=`ALTER DEFAULT PRIVILEGES FOR ROLE "%s" IN SCHEMA "%s" GRANT %s ON TABLES TO "%s"`
19
+
DEFAULT_PRIVS_SCHEMA=`ALTER DEFAULT PRIVILEGES IN SCHEMA "%s" GRANT %s ON TABLES TO "%s"`
20
20
REVOKE_CONNECT=`REVOKE CONNECT ON DATABASE "%s" FROM public`
21
21
TERMINATE_BACKEND=`SELECT pg_terminate_backend(pg_stat_activity.pid) FROM pg_stat_activity WHERE pg_stat_activity.datname = '%s' AND pid <> pg_backend_pid()`
22
22
GET_DB_OWNER=`SELECT pg_catalog.pg_get_userbyid(d.datdba) FROM pg_catalog.pg_database d WHERE d.datname = '%s'`
0 commit comments