postgresql/src/include/replication
Amit Kapila 8c58624df4 Fix the logical replication timeout during large DDLs.
The DDLs like Refresh Materialized views that generate lots of temporary
data due to rewrite rules may not be processed by output plugins (for
example pgoutput). So, we won't send keep-alive messages for a long time
while processing such commands and that can lead the subscriber side to
timeout. We have previously fixed a similar case for large transactions in
commit f95d53eded where the output plugin filters all or most of the
changes but missed to handle the DDLs.

We decided not to backpatch this as this adds a new callback in the
existing exposed structure and moreover, users can increase the
wal_sender_timeout and wal_receiver_timeout to avoid this problem.

Author: Wang wei, Hou Zhijie
Reviewed-by: Peter Smith, Ashutosh Bapat, Shi yu, Amit Kapila
Discussion: https://postgr.es/m/OS3PR01MB6275478E5D29E4A563302D3D9E2B9@OS3PR01MB6275.jpnprd01.prod.outlook.com
Discussion: https://postgr.es/m/CAA5-nLARN7-3SLU_QUxfy510pmrYK6JJb=bk3hcgemAM_pAv+w@mail.gmail.com
2023-02-08 07:58:25 +05:30
..
decode.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
logical.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
logicallauncher.h Track logrep apply workers' last start times to avoid useless waits. 2023-01-22 14:08:46 -05:00
logicalproto.h Perform apply of large transactions by parallel workers. 2023-01-09 07:52:45 +05:30
logicalrelation.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
logicalworker.h Perform apply of large transactions by parallel workers. 2023-01-09 07:52:45 +05:30
message.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
origin.h Perform apply of large transactions by parallel workers. 2023-01-09 07:52:45 +05:30
output_plugin.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
pgoutput.h Perform apply of large transactions by parallel workers. 2023-01-09 07:52:45 +05:30
reorderbuffer.h Fix the logical replication timeout during large DDLs. 2023-02-08 07:58:25 +05:30
slot.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
snapbuild.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
syncrep.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
walreceiver.h Perform apply of large transactions by parallel workers. 2023-01-09 07:52:45 +05:30
walsender.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
walsender_private.h Use dlists instead of SHM_QUEUE for syncrep queue 2023-01-18 12:15:05 -08:00
worker_internal.h Display the leader apply worker's PID for parallel apply workers. 2023-01-18 09:03:12 +05:30