postgres/src
Amit Kapila 3f28b2fcac Don't advance origin during apply failure.
We advance origin progress during abort on successful streaming and
application of ROLLBACK in parallel streaming mode. But the origin
shouldn't be advanced during an error or unsuccessful apply due to
shutdown. Otherwise, it will result in a transaction loss as such a
transaction won't be sent again by the server.

Reported-by: Hou Zhijie
Author: Hayato Kuroda and Shveta Malik
Reviewed-by: Amit Kapila
Backpatch-through: 16
Discussion: https://postgr.es/m/TYAPR01MB5692FAC23BE40C69DA8ED4AFF5B92@TYAPR01MB5692.jpnprd01.prod.outlook.com
2024-08-21 09:22:32 +05:30
..
backend Don't advance origin during apply failure. 2024-08-21 09:22:32 +05:30
bin Fix cpluspluscheck for pg_verifybackup.h. 2024-08-19 07:59:30 +12:00
common Remove fe_memutils from libpgcommon_shlib 2024-08-12 08:30:39 +02:00
fe_utils Improve more comments in astreamer_gzip.c. 2024-08-16 13:45:23 -04:00
include Don't advance origin during apply failure. 2024-08-21 09:22:32 +05:30
interfaces libpq: Trace all messages received from the server 2024-08-16 13:23:18 -04:00
makefiles Add -Wmissing-variable-declarations to the standard compilation flags 2024-08-03 11:51:02 +02:00
pl Fix edge case in plpgsql's make_callstmt_target(). 2024-08-07 12:54:39 -04:00
port Harmonize MinGW CODESET lookup with MSVC. 2024-08-14 15:04:14 +12:00
template Remove AIX support 2024-02-28 15:17:23 +04:00
test Don't advance origin during apply failure. 2024-08-21 09:22:32 +05:30
timezone Update time zone data files to tzdata release 2024a. 2024-02-01 15:57:53 -05:00
tools Log the conflicts while applying changes in logical replication. 2024-08-20 08:35:11 +05:30
tutorial Update copyright for 2024 2024-01-03 20:49:05 -05:00
.gitignore
DEVELOPERS
Makefile
Makefile.global.in Add -Wmissing-variable-declarations to the standard compilation flags 2024-08-03 11:51:02 +02:00
Makefile.shlib Remove AIX support 2024-02-28 15:17:23 +04:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
nls-global.mk