RE: Fix LogStandbySnapshot() race during logical decoding activation

From: "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>
To: 'Zhijie Hou' <houzhijie22(at)gmail(dot)com>, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>
Cc: "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: RE: Fix LogStandbySnapshot() race during logical decoding activation
Date: 2026-11-24 04:25:39
Message-ID: OS7PR01MB1831738BBD392858E2DA6A5DDF5442@OS7PR01MB18317.jpnprd01.prod.outlook.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

> Here is the V2 patch.

Thanks for updating the patch.

Quick (and possibly stupid) question. Is there a reason why
IsXLogLogicalInfoEnabled() is done before GetRunningTransactionLocks() and
LogAccessExclusiveLocks()?
You said to put it right before GetRunningTransactionData(), but these functions
are done in-between. It's harmless but it's clearer for me to put them before.

Best regards,
Hayato Kuroda
FUJITSU LIMITED

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Smith 2026-11-24 04:45:57 Re: Proposal: Conflict log history table for Logical Replication
Previous Message Michael Paquier 2026-11-24 04:13:36 Re: Three more loops that let a function drop a not-yet-processed index/partition