Skip to content

Commit 6377ace

Browse files
committed
Merge remote-tracking branch 'public/develop' into develop
2 parents 0c00bff + 68d1e11 commit 6377ace

1 file changed

Lines changed: 22 additions & 3 deletions

File tree

product_docs/docs/efm/5/installing/prerequisites.mdx

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,11 @@ The database user specified by the `db.user` property in the `efm.properties` fi
101101
`pg_wal_replay_pause()`
102102

103103

104-
If the `reconfigure.num.sync` or `reconfigure.sync.primary` property is set to `true`, then the db.user requires `pg_read_all_stats` privilege and permissions to run `pg_reload_conf()`.
104+
If the `reconfigure.num.sync` or `reconfigure.sync.primary` property is set to `true`, then the `db.user` requires pg_read_all_stats privilege and permissions to run `pg_reload_conf()`.
105105

106106
For detailed information about each of these functions, see the [PostgreSQL core documentation](https://www.postgresql.org/docs/current/index.html).
107107

108-
If the `update.physical.slots.period` property is used, then the db.user requires the `REPLICATION` privilege. A database superuser can provide the permissions needed:
108+
If the `update.physical.slots.period` property is used, then the db.user requires the REPLICATION privilege. A database superuser can provide the permissions needed:
109109

110110
```sql
111111
ALTER USER <user_name> REPLICATION;
@@ -117,4 +117,23 @@ The user must also have permissions to read the values of configuration variable
117117
GRANT pg_read_all_settings TO <user_name>;
118118
```
119119

120-
For more information about `pg_read_all_settings`, see the [PostgreSQL core documentation](https://www.postgresql.org/docs/current/default-roles.html).
120+
For more information about pg_read_all_settings, see the [PostgreSQL core documentation](https://www.postgresql.org/docs/current/default-roles.html).
121+
122+
If `auto.rewind` is set to `true`, then the `db.user` requires the pg_checkpoint role to be granted, as the Failover Manager agent will issue a `CHECKPOINT` command prior to executing `pg_rewind`.
123+
124+
The required privileges are summarized in this table:
125+
126+
Privilege | Object | Condition
127+
------------|------------------------|----------
128+
EXECUTE | `pg_current_wal_lsn()` | Always required
129+
EXECUTE | `pg_last_wal_replay_lsn()` | Always required
130+
EXECUTE | `pg_wal_replay_resume()` | Always required
131+
EXECUTE | `pg_wal_replay_pause()` | Always required
132+
EXECUTE | `pg_reload_conf()` | When `reconfigure.num.sync` or `reconfigure.sync.primary` is `true`
133+
REPLICATION | | When the `update.physical.slots.period` property is in effect (non-zero value)
134+
135+
Role | Condition
136+
----------------------|----------
137+
pg_read_all_settings | Always required
138+
pg_read_all_stats | When `reconfigure.num.sync` or `reconfigure.sync.primary` is `true`
139+
pg_checkpoint | When `auto.rewind` is set to `true`

0 commit comments

Comments
 (0)