Change the default value of the streaming option to 'parallel'.
authorAmit Kapila
Mon, 28 Oct 2024 03:12:05 +0000 (08:42 +0530)
committerAmit Kapila
Mon, 28 Oct 2024 03:12:05 +0000 (08:42 +0530)
commit1bf1140be87230c71d0e7b29939f7e2b3d073aa1
tree4e41b121692ed4371283cf9909c0504259fcad74
parent6b652e6ce85a977e4ca7b8cc045cf4f3457b2d7b
Change the default value of the streaming option to 'parallel'.

Previously the default value of streaming option for a subscription was
'off'. The parallel option indicates that the changes in large
transactions (greater than logical_decoding_work_mem) are to be applied
directly via one of the parallel apply workers, if available.

The parallel mode was introduced in 16, but we refrain from enabling it by
default to avoid seeing any unpleasant behavior in the existing
applications. However we haven't found any such report yet, so this is a
good time to enable it by default.

Reported-by: Vignesh C
Author: Hayato Kuroda, Masahiko Sawada, Peter Smith, Amit Kapila
Discussion: https://postgr.es/m/CALDaNm1=MedhW23NuoePJTmonwsMSp80ddsw+sEJs0GUMC_kqQ@mail.gmail.com
doc/src/sgml/ref/create_subscription.sgml
src/backend/commands/subscriptioncmds.c
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/t/002_pg_dump.pl
src/test/regress/expected/subscription.out
src/test/subscription/t/022_twophase_cascade.pl