postgresql/src/bin/pg_rewind
Alexander Korotkov 51efe38cb9 Introduce transaction_timeout
This commit adds timeout that is expected to be used as a prevention
of long-running queries. Any session within the transaction will be
terminated after spanning longer than this timeout.

However, this timeout is not applied to prepared transactions.
Only transactions with user connections are affected.

Discussion: https://postgr.es/m/CAAhFRxiQsRs2Eq5kCo9nXE3HTugsAAJdSQSmxncivebAxdmBjQ%40mail.gmail.com
Author: Andrey Borodin <amborodin@acm.org>
Author: Japin Li <japinli@hotmail.com>
Author: Junwang Zhao <zhjwpku@gmail.com>
Reviewed-by: Nikolay Samokhvalov <samokhvalov@gmail.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Reviewed-by: Fujii Masao <masao.fujii@oss.nttdata.com>
Reviewed-by: bt23nguyent <bt23nguyent@oss.nttdata.com>
Reviewed-by: Yuhang Qiu <iamqyh@gmail.com>
2024-02-15 23:56:12 +02:00
..
po Update copyright for 2024 2024-01-03 20:49:05 -05:00
t Skip .DS_Store files in server side utils 2024-02-13 13:47:12 +01:00
.gitignore Improve logging of TAP tests. 2015-07-09 13:19:10 +03:00
Makefile Update copyright for 2024 2024-01-03 20:49:05 -05:00
datapagemap.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
datapagemap.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
file_ops.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
file_ops.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
filemap.c Skip .DS_Store files in server side utils 2024-02-13 13:47:12 +01:00
filemap.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
libpq_source.c Introduce transaction_timeout 2024-02-15 23:56:12 +02:00
local_source.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
nls.mk Add missing source files to nls.mk 2023-04-14 09:56:04 +02:00
parsexlog.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
pg_rewind.c Refactor pipe_read_line to return the full line 2024-02-09 15:03:16 +01:00
pg_rewind.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
rewind_source.h Update copyright for 2024 2024-01-03 20:49:05 -05:00
timeline.c Update copyright for 2024 2024-01-03 20:49:05 -05:00