From: | "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com> |
---|---|
To: | 'Amit Kapila' <amit(dot)kapila16(at)gmail(dot)com> |
Cc: | Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, "Callahan, Drew" <callaan(at)amazon(dot)com>, "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org> |
Subject: | RE: Potential data loss due to race condition during logical replication slot creation |
Date: | 2024-03-19 04:39:30 |
Message-ID: | TYCPR01MB120771B4C477C9677031F0D9BF52C2@TYCPR01MB12077.jpnprd01.prod.outlook.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Dear Amit,
>
> Won't it be possible to achieve the same thing if we just save
> (serialize) the highest xid among all running xacts?
>
Indeed, here is an updated version.
Since the array in xl_running_xact is not ordered, entries of it must be seeked
and found the highest one.
Best Regards,
Hayato Kuroda
FUJITSU LIMITED
https://www.fujitsu.com/
Attachment | Content-Type | Size |
---|---|---|
v2-0001-Serialize-running-xacts.patch | application/octet-stream | 11.6 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Cramer | 2024-03-19 09:52:35 | Re: Postgres jdbc driver inconsistent behaviour with double precession |
Previous Message | Michael Paquier | 2024-03-19 03:57:51 | Re: ReplicationSlotRelease may set the statusFlags of other processes in PG14 |