0002-Reuse-table_object-in-publication-command-syntax.patch
application/octet-stream
Filename: 0002-Reuse-table_object-in-publication-command-syntax.patch
Type: application/octet-stream
Part: 0
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: format-patch
Series: patch 0002
Subject: Reuse table_object in publication command syntax
| File | + | − |
|---|---|---|
| doc/src/sgml/ref/alter_publication.sgml | 2 | 2 |
| doc/src/sgml/ref/create_publication.sgml | 1 | 1 |
From 805f28f9c6618282856faa2d6d1aff62af501ad7 Mon Sep 17 00:00:00 2001
From: Vignesh C <vignesh21@gmail.com>
Date: Tue, 31 Mar 2026 14:41:24 +0530
Subject: [PATCH 2/2] Reuse table_object in publication command syntax
Simplify the CREATE PUBLICATION and ALTER PUBLICATION reference syntax
by reusing the existing table_object instead of repeating its expanded
form.
Replace:
[ ONLY ] table_name [ * ]
with:
table_object
in the definitions of publication_drop_object and table_and_columns.
---
doc/src/sgml/ref/alter_publication.sgml | 4 ++--
doc/src/sgml/ref/create_publication.sgml | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/doc/src/sgml/ref/alter_publication.sgml b/doc/src/sgml/ref/alter_publication.sgml
index 59b34dd0a38..aa32bb169e9 100644
--- a/doc/src/sgml/ref/alter_publication.sgml
+++ b/doc/src/sgml/ref/alter_publication.sgml
@@ -40,12 +40,12 @@ ALTER PUBLICATION <replaceable class="parameter">name</replaceable> RENAME TO <r
<phrase>and <replaceable class="parameter">publication_drop_object</replaceable> is one of:</phrase>
- TABLE [ ONLY ] <replaceable class="parameter">table_name</replaceable> [ * ] [, ... ]
+ TABLE <replaceable class="parameter">table_object</replaceable> [, ... ]
TABLES IN SCHEMA { <replaceable class="parameter">schema_name</replaceable> | CURRENT_SCHEMA } [, ... ]
<phrase>and <replaceable class="parameter">table_and_columns</replaceable> is:</phrase>
- [ ONLY ] <replaceable class="parameter">table_name</replaceable> [ * ] [ ( <replaceable class="parameter">column_name</replaceable> [, ... ] ) ] [ WHERE ( <replaceable class="parameter">expression</replaceable> ) ]
+ <replaceable class="parameter">table_object</replaceable> [ ( <replaceable class="parameter">column_name</replaceable> [, ... ] ) ] [ WHERE ( <replaceable class="parameter">expression</replaceable> ) ]
<phrase>and <replaceable class="parameter">except_table_object</replaceable> is:</phrase>
diff --git a/doc/src/sgml/ref/create_publication.sgml b/doc/src/sgml/ref/create_publication.sgml
index 25be2e44ddd..16536e37eec 100644
--- a/doc/src/sgml/ref/create_publication.sgml
+++ b/doc/src/sgml/ref/create_publication.sgml
@@ -37,7 +37,7 @@ CREATE PUBLICATION <replaceable class="parameter">name</replaceable>
<phrase>and <replaceable class="parameter">table_and_columns</replaceable> is:</phrase>
- [ ONLY ] <replaceable class="parameter">table_name</replaceable> [ * ] [ ( <replaceable class="parameter">column_name</replaceable> [, ... ] ) ] [ WHERE ( <replaceable class="parameter">expression</replaceable> ) ]
+ <replaceable class="parameter">table_object</replaceable> [ ( <replaceable class="parameter">column_name</replaceable> [, ... ] ) ] [ WHERE ( <replaceable class="parameter">expression</replaceable> ) ]
<phrase>and <replaceable class="parameter">except_table_object</replaceable> is:</phrase>
--
2.43.0