aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/regexp.c
diff options
context:
space:
mode:
authorAmit Kapila <akapila@postgresql.org>2022-05-11 10:51:04 +0530
committerAmit Kapila <akapila@postgresql.org>2022-05-11 10:51:04 +0530
commitd6da71fa8f28faa68823e163f318ffb38a7a9a54 (patch)
tree6a384644d3e56ec4f4ccc1232d87f1eff0a41df8 /src/backend/utils/adt/regexp.c
parentca9e9b08e453523314a3b8e87d1894edb23b6e8d (diff)
downloadpostgresql-d6da71fa8f28faa68823e163f318ffb38a7a9a54.tar.gz
postgresql-d6da71fa8f28faa68823e163f318ffb38a7a9a54.zip
Fix the logical replication timeout during large transactions.
The problem is that we don't send keep-alive messages for a long time while processing large transactions during logical replication where we don't send any data of such transactions. This can happen when the table modified in the transaction is not published or because all the changes got filtered. We do try to send the keep_alive if necessary at the end of the transaction (via WalSndWriteData()) but by that time the subscriber-side can timeout and exit. To fix this we try to send the keepalive message if required after processing certain threshold of changes. Reported-by: Fabrice Chapuis Author: Wang wei and Amit Kapila Reviewed By: Masahiko Sawada, Euler Taveira, Hou Zhijie, Hayato Kuroda Backpatch-through: 10 Discussion: https://postgr.es/m/CAA5-nLARN7-3SLU_QUxfy510pmrYK6JJb=bk3hcgemAM_pAv+w@mail.gmail.com
Diffstat (limited to 'src/backend/utils/adt/regexp.c')
0 files changed, 0 insertions, 0 deletions