Re: VACUUM FULL / REPACK on the primary make hot standby queries miss rows (2012 report, still unfixed)

From: shihao zhong <zhong950419(at)gmail(dot)com>
To: Dave Sharpe <davesharpe13(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org, "noah(at)leadboat(dot)com" <noah(at)leadboat(dot)com>, robertmhaas(at)gmail(dot)com
Subject: Re: VACUUM FULL / REPACK on the primary make hot standby queries miss rows (2012 report, still unfixed)
Date: 2026-12-05 15:33:32
Message-ID: CAGRkXqTNAUaeZM5rDLpOgD1mvKDdgv+wzBUC8kQs9aZ-gR+T2w@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Dave,

Thanks for digging up the 2012 thread. Michael Malis reported the same
problem[1], together with CREATE INDEX and hash indexes. I
posted patches there and 0002 does your option 1. After a
rewrite it logs a snapshot conflict at the OldestXmin the rewrite used,
so the standby query is canceled instead of missing rows.

Your review there would be very welcome, and your script would be a
good cross-check.

[1]https://postgr.es/m/CAGRkXqQk=DXKyhFW9piKN=7hL5UdVrxagxfO+zjE-DwRAx0a7Q@mail.gmail.com

Thanks,
Shihao

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Rui Zhao 2026-12-05 15:53:40 Re: Avoid logging dropped TOAST values with REPLICA IDENTITY FULL
Previous Message Chengpeng Yan 2026-12-05 14:30:49 Re: Unfortunate pushing down of expressions below sort