From c8114a0380bdbf0052d061bcc93917d32e4f7ead Mon Sep 17 00:00:00 2001 From: Bobby Bissett Date: Mon, 15 Apr 2024 10:04:18 -0400 Subject: [PATCH] Add information about slot privileges needed If using physical replication slots, the database user efm uses must have permissions for creating and advancing slots. This commit adds one way to do it -- this might change if I find more granular privileges that should be used instead. --- product_docs/docs/efm/4/installing/prerequisites.mdx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/product_docs/docs/efm/4/installing/prerequisites.mdx b/product_docs/docs/efm/4/installing/prerequisites.mdx index fe50fdb0900..1a66e3d626c 100644 --- a/product_docs/docs/efm/4/installing/prerequisites.mdx +++ b/product_docs/docs/efm/4/installing/prerequisites.mdx @@ -102,6 +102,12 @@ If the `reconfigure.num.sync` or `reconfigure.sync.primary` property is set to ` For detailed information about each of these functions, see the [PostgreSQL core documentation](https://www.postgresql.org/docs/current/index.html). +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: + +```sql +ALTER USER REPLICATION; +``` + The user must also have permissions to read the values of configuration variables. A database superuser can use the PostgreSQL `GRANT` command to provide the permissions needed: ```sql