Re: POC: Unlocked path for GetSnapshotDataReuse

From: shihao zhong <zhong950419(at)gmail(dot)com>
To: Matthias van de Meent <boekewurm+postgres(at)gmail(dot)com>
Cc: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>, Andres Freund <andres(at)anarazel(dot)de>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: POC: Unlocked path for GetSnapshotDataReuse
Date: 2026-12-05 05:32:43
Message-ID: CAGRkXqTdJJGh22SDTxeHHDZNTQz=1h+Vi2uVwdgivuq12Oyb4g@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Matthias,

Thanks for v3, it looks correct to me.

One small thing. pg_atomic_read_membarrier_u64() is really a fetch_add
of 0. So it writes to the shared counter. Would pg_memory_barrier() plus
pg_atomic_read_u64() work instead?

Thanks,
Shihao

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Manu 2026-12-05 06:58:55 [PATCH] Enumerate schema members through pg_depend
Previous Message shihao zhong 2026-12-05 05:22:27 Re: [PATCH] Allow NOTIFY without cross-transaction commit ordering