Re: pgsql: Replace existing durable_rename_excl() calls with durable_rename

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Replace existing durable_rename_excl() calls with durable_rename
Дата
Msg-id 511362.1651116498@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pgsql: Replace existing durable_rename_excl() calls with durable_rename  (Michael Paquier <michael@paquier.xyz>)
Ответы Re: pgsql: Replace existing durable_rename_excl() calls with durable_rename
Список pgsql-committers
Michael Paquier <michael@paquier.xyz> writes:
> This change replaces all calls to durable_rename_excl() with
> durable_rename().  This removes the protection against accidentally
> overwriting an existing file, but some platforms are already living
> without it, and all those code paths never expect an existing file (a
> couple of assertions are added to check after that, in case).

Assert'ing that an external (filesystem) condition holds seems like a bad
idea.  See buildfarm.

            regards, tom lane



В списке pgsql-committers по дате отправления: