diff options
author | Amit Kapila <akapila@postgresql.org> | 2025-05-19 12:13:06 +0530 |
---|---|---|
committer | Amit Kapila <akapila@postgresql.org> | 2025-05-19 12:13:06 +0530 |
commit | ad5eaf390c58294e2e4c1509aa87bf13261a5d15 (patch) | |
tree | 875ea9401d31331db09e9c89ab1ec43a8571fbc1 /src/common/compression.c | |
parent | f8db5c7a3f91aa07d53592f6e6e6378e26c7b55d (diff) | |
download | postgresql-master.tar.gz postgresql-master.zip |
Prevent moving the confirmed_flush backwards, as this could lead to data
duplication issues caused by replicating already replicated changes.
This can happen when a client acknowledges an LSN it doesn't have to do
anything for, and thus didn't store persistently. After a restart, the
client can send the prior LSN that it stored persistently as an
acknowledgement, but we need to ignore such an LSN to avoid retreating
confirm_flush LSN.
Diagnosed-by: Zhijie Hou <houzj.fnst@fujitsu.com>
Author: shveta malik <shveta.malik@gmail.com>
Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>
Reviewed-by: Dilip Kumar <dilipbalaut@gmail.com>
Tested-by: Nisha Moond <nisha.moond412@gmail.com>
Backpatch-through: 13
Discussion: https://postgr.es/m/CAJpy0uDZ29P=BYB1JDWMCh-6wXaNqMwG1u1mB4=10Ly0x7HhwQ@mail.gmail.com
Discussion: https://postgr.es/m/OS0PR01MB57164AB5716AF2E477D53F6F9489A@OS0PR01MB5716.jpnprd01.prod.outlook.com
Diffstat (limited to 'src/common/compression.c')
0 files changed, 0 insertions, 0 deletions