Skip to content

Commit 376af68

Browse files
author
Amit Kapila
committed
Doc: fix column list vs. replica identity rules.
It was not strictly correct to say that a column list must always include replica identity columns because that is true for only updates and deletes. Author: Peter Smith Reviwed-by: Vignesh C, Amit Kapila Backpatch-through: 15, where it was introduced Discussion: https://postgr.es/m/CAHut+PvOuc9=_4TbASc5=VUqh16UWtFO3GzcKQK_5m1hrW3vqg@mail.gmail.com
1 parent bfb9dfd commit 376af68

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

doc/src/sgml/ref/create_publication.sgml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ CREATE PUBLICATION <replaceable class="parameter">name</replaceable>
9090
<para>
9191
When a column list is specified, only the named columns are replicated.
9292
If no column list is specified, all columns of the table are replicated
93-
through this publication, including any columns added later. If a column
94-
list is specified, it must include the replica identity columns.
93+
through this publication, including any columns added later. It has no
94+
effect on <literal>TRUNCATE</literal> commands.
9595
</para>
9696

9797
<para>
@@ -252,6 +252,13 @@ CREATE PUBLICATION <replaceable class="parameter">name</replaceable>
252252
disallowed on those tables.
253253
</para>
254254

255+
<para>
256+
Any column list must include the <literal>REPLICA IDENTITY</literal> columns
257+
in order for <command>UPDATE</command> or <command>DELETE</command>
258+
operations to be published. There are no column list restrictions if the
259+
publication publishes only <command>INSERT</command> operations.
260+
</para>
261+
255262
<para>
256263
A row filter expression (i.e., the <literal>WHERE</literal> clause) must contain only
257264
columns that are covered by the <literal>REPLICA IDENTITY</literal>, in

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy