From dc6c879455e2db9adb7cf656ac29fdddeac39d77 Mon Sep 17 00:00:00 2001 From: Amit Kapila Date: Wed, 24 Dec 2025 09:22:00 +0000 Subject: [PATCH] Doc: Clarify publication privilege requirements. Update the logical replication documentation to explicitly outline the privilege requirements for each publication syntax. This will ensure users understand the necessary permissions when creating or managing publications. Author: Shlok Kyal Reviewed-by: Peter Smith Reviewed-by: Chao Li Reviewed-by: David G. Johnston Discussion: https://postgr.es/m/CANhcyEXODen4U0XLk0aAwFTwGxjAfE9eRaynREenLp-JBSaFHw@mail.gmail.com --- 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 - 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 FOR TABLE, the user must + have ownership rights on all the listed tables. To create a publication + using any of FOR ALL TABLES, + FOR ALL SEQUENCES, + or FOR TABLES IN SCHEMA, the user must be a superuser. To + alter a publication using ADD TABLE, the user must have + ownership rights on all the listed tables. To alter a publication using + ADD TABLES IN SCHEMA, the user must be a superuser.