From 4ee71241b92f4613ac1e7582c332d858fb347b4e Mon Sep 17 00:00:00 2001 From: Peter Smith Date: Tue, 18 Nov 2025 16:16:55 +1100 Subject: [PATCH v5] Fix synopsis --- doc/src/sgml/ref/alter_publication.sgml | 12 ++++++++++-- doc/src/sgml/ref/create_publication.sgml | 10 +++++++--- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/doc/src/sgml/ref/alter_publication.sgml b/doc/src/sgml/ref/alter_publication.sgml index 8dd250d..dd37c19 100644 --- a/doc/src/sgml/ref/alter_publication.sgml +++ b/doc/src/sgml/ref/alter_publication.sgml @@ -30,13 +30,21 @@ ALTER PUBLICATION name RENAME TO where publication_object is one of: - TABLE [ ONLY ] table_name [ * ] [ ( column_name [, ... ] ) ] [ WHERE ( expression ) ] [, ... ] + TABLE table_spec [, ... ] TABLES IN SCHEMA { schema_name | CURRENT_SCHEMA } [, ... ] + where table_spec is: + + [ ONLY ] table_name [ * ] [ ( column_name [, ... ] ) ] [ WHERE ( expression ) ] + where publication_drop_object is one of: - TABLE [ ONLY ] table_name [ * ] [, ... ] + TABLE table_spec_drop [, ... ] TABLES IN SCHEMA { schema_name | CURRENT_SCHEMA } [, ... ] + + where table_spec_drop is: + + [ ONLY ] table_name [ * ] diff --git a/doc/src/sgml/ref/create_publication.sgml b/doc/src/sgml/ref/create_publication.sgml index 66a70e5..b49635b 100644 --- a/doc/src/sgml/ref/create_publication.sgml +++ b/doc/src/sgml/ref/create_publication.sgml @@ -22,15 +22,19 @@ PostgreSQL documentation CREATE PUBLICATION name - [ FOR { publication_object [, ... ] | all_publication_object [, ... ] } ] + [ FOR { publication_object [, ... ] | publication_all_object [, ... ] } ] [ WITH ( publication_parameter [= value] [, ... ] ) ] where publication_object is one of: - TABLE [ ONLY ] table_name [ * ] [ ( column_name [, ... ] ) ] [ WHERE ( expression ) ] [, ... ] + TABLE table_spec [, ... ] TABLES IN SCHEMA { schema_name | CURRENT_SCHEMA } [, ... ] -where all_publication_object is one of: + where table_spec is: + + [ ONLY ] table_name [ * ] [ ( column_name [, ... ] ) ] [ WHERE ( expression ) ] + +where publication_all_object is one of: ALL TABLES ALL SEQUENCES -- 1.8.3.1