Additional info for CREATE ROLE with REPLICATION

From: Marcos Pegoraro <marcos(at)f10(dot)com(dot)br>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Additional info for CREATE ROLE with REPLICATION
Date: 2025-11-25 21:45:59
Message-ID: CAB-JLwZLgLNOkce=VsQOcThBy=xqZbELdQ-7cbYh2xucfwbgmQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

When a logical replication is created and a ROLE with REPLICATION clause is
used for that, there is no info on [0] that that role needs to have read
permission on those tables. CREATE PUBLICATION and CREATE SUBSCRIPTION
commands works as expected but replication doesn't work, only a "access
denied" is added on logs.

So it would be good to explain that a GRANT is needed.

[0] - https://www.postgresql.org/docs/current/sql-createrole.html

regards
Marcos

Attachment Content-Type Size
0001-Master - Additional info for create role with REPLICATION.diff application/octet-stream 717 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message M.Atıf Ceylan 2025-11-25 21:50:52 [PATCH] psql: add size-based sorting options (O/o) for tables and indexes
Previous Message Melanie Plageman 2025-11-25 21:43:58 Re: eliminate xl_heap_visible to reduce WAL (and eventually set VM on-access)