v2-0001-Improve-documentation-of-publication-privilege-ch.patch
application/octet-stream
Filename: v2-0001-Improve-documentation-of-publication-privilege-ch.patch
Type: application/octet-stream
Part: 0
From 0fe29373dfd8bdda1674fad1b4ddb3de45dbe195 Mon Sep 17 00:00:00 2001 From: Shlok Kyal <shlok.kyal.oss@gmail.com> Date: Tue, 23 Dec 2025 14:22:06 +0530 Subject: [PATCH v2] Improve documentation of publication privilege checks Make the logical replication documentation explicitly describe the privilege requirements for different publication syntaxes. --- doc/src/sgml/logical-replication.sgml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/doc/src/sgml/logical-replication.sgml b/doc/src/sgml/logical-replication.sgml index f47b7378397..58ce75d8b63 100644 --- a/doc/src/sgml/logical-replication.sgml +++ b/doc/src/sgml/logical-replication.sgml @@ -2550,10 +2550,14 @@ CONTEXT: processing remote data for replication origin "pg_16395" during "INSER </para> <para> - To add tables to a publication, the user must have ownership rights on the - table. To add all tables in schema to a publication, the user must be a - superuser. To create a publication that publishes all tables, all tables in - schema, or all sequences automatically, the user must be a superuser. + To create a publication using <literal>FOR TABLE</literal>, the user must + have ownership rights on all the listed tables. To create a publication + using any of <literal>FOR ALL TABLES</literal>, + <literal>FOR ALL SEQUENCES</literal>, + or <literal>FOR TABLES IN SCHEMA</literal>, the user must be a superuser. To + alter a publication using <literal>ADD TABLE</literal>, the user must have + ownership rights on all the listed tables. To alter a publication using + <literal>ADD TABLES IN SCHEMA</literal>, the user must be a superuser. </para> <para> -- 2.34.1