Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit376af68

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 includereplica identity columns because that is true for only updates anddeletes.Author: Peter SmithReviwed-by: Vignesh C, Amit KapilaBackpatch-through: 15, where it was introducedDiscussion:https://postgr.es/m/CAHut+PvOuc9=_4TbASc5=VUqh16UWtFO3GzcKQK_5m1hrW3vqg@mail.gmail.com
1 parentbfb9dfd commit376af68

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)

[8]ページ先頭

©2009-2025 Movatter.jp