@@ -79,7 +79,8 @@ CREATE PUBLICATION <replaceable class="parameter">name</replaceable>
79
79
</para>
80
80
81
81
<para>
82
- If the optional <literal>WHERE</literal> clause is specified, rows for
82
+ If the optional <literal>WHERE</literal> clause is specified, it defines a
83
+ <firstterm>row filter</firstterm> expression. Rows for
83
84
which the <replaceable class="parameter">expression</replaceable>
84
85
evaluates to false or null will not be published. Note that parentheses
85
86
are required around the expression. It has no effect on
@@ -192,6 +193,11 @@ CREATE PUBLICATION <replaceable class="parameter">name</replaceable>
192
193
consisting of a different set of partitions.
193
194
</para>
194
195
196
+ <para>
197
+ This parameter also affects how row filters and column lists are
198
+ chosen for partitions; see below for details.
199
+ </para>
200
+
195
201
<para>
196
202
If this is enabled, <literal>TRUNCATE</literal> operations performed
197
203
directly on partitions are not replicated.
@@ -241,21 +247,28 @@ CREATE PUBLICATION <replaceable class="parameter">name</replaceable>
241
247
</para>
242
248
243
249
<para>
244
- A <literal>WHERE</literal> (i.e. row filter) expression must contain only
250
+ A row filter expression (i.e., the <literal>WHERE</literal> clause) must contain only
245
251
columns that are covered by the <literal>REPLICA IDENTITY</literal>, in
246
252
order for <command>UPDATE</command> and <command>DELETE</command> operations
247
253
to be published. For publication of <command>INSERT</command> operations,
248
254
any column may be used in the <literal>WHERE</literal> expression. The
249
- <literal>WHERE</literal> clause allows simple expressions that don't have
255
+ row filter allows simple expressions that don't have
250
256
user-defined functions, user-defined operators, user-defined types,
251
257
user-defined collations, non-immutable built-in functions, or references to
252
258
system columns.
253
- If your publication contains a partitioned table, the publication parameter
254
- <literal>publish_via_partition_root</literal> determines if it uses the
255
- partition's row filter (if the parameter is false, the default) or the root
256
- partitioned table's row filter.
259
+ </para>
260
+
261
+ <para>
262
+ For published partitioned tables, the row filter for each
263
+ partition is taken from the published partitioned table if the
264
+ publication parameter <literal>publish_via_partition_root</literal> is true,
265
+ or from the partition itself if it is false (the default).
257
266
See <xref linkend="logical-replication-row-filter"/> for details about row
258
267
filters.
268
+ Similarly, for published partitioned tables, the column list for each
269
+ partition is taken from the published partitioned table if the
270
+ publication parameter <literal>publish_via_partition_root</literal> is true,
271
+ or from the partition itself if it is false.
259
272
</para>
260
273
261
274
<para>
0 commit comments