Re: Synchronous commit behavior during network outage

From: Andrey Borodin <x4mmm(at)yandex-team(dot)ru>
To: Ondřej Žižka <ondrej(dot)zizka(at)stratox(dot)cz>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Synchronous commit behavior during network outage
Date: 2021-04-22 04:55:37
Message-ID: 54B6E300-382E-4C40-9CC7-F8DD32C0075A@yandex-team.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi Ondrej!

> 19 апр. 2021 г., в 22:19, Ondřej Žižka <ondrej(dot)zizka(at)stratox(dot)cz> написал(а):
>
> Do you think, that would be possible to implement a process that would solve this use case?
> Thank you
> Ondrej
>

Feel free to review patch fixing this at [0]. It's classified as "Server Features", but I'm sure it's a bug fix.

Yandex.Cloud PG runs with this patch for more than half a year. Because we cannot afford loosing data in HA clusters.

It's somewhat incomplete solution, because PG restart or crash recovery will make waiting transactions visible. But we protect from this on HA tool's side.

Best regards, Andrey Borodin.

[0] https://commitfest.postgresql.org/33/2402/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Masahiko Sawada 2021-04-22 05:09:15 Re: Replication slot stats misgivings
Previous Message Amit Langote 2021-04-22 04:54:51 Re: problem with RETURNING and update row movement