Re: stat() vs ERROR_DELETE_PENDING, round N + 1
От | Alexander Lakhin |
---|---|
Тема | Re: stat() vs ERROR_DELETE_PENDING, round N + 1 |
Дата | |
Msg-id | 6d84b297-aeec-6196-f4cf-99fc7b94a638@gmail.com обсуждение исходный текст |
Ответ на | Re: stat() vs ERROR_DELETE_PENDING, round N + 1 (Thomas Munro <thomas.munro@gmail.com>) |
Ответы |
Re: stat() vs ERROR_DELETE_PENDING, round N + 1
|
Список | pgsql-hackers |
06.09.2021 16:04, Thomas Munro wrote: > On Mon, Sep 6, 2021 at 6:36 PM Michael Paquier <michael@paquier.xyz> wrote: >> The last time I poked at the bear (54fb8c7d), there was a test posted >> by Alexander Lakhin that was really useful in making sure that >> concurrency is correctly handled when a file is unlinked: >> https://www.postgresql.org/message-id/c3427edf-d7c0-ff57-90f6-b5de3bb62709@gmail.com The new approach looks very promising. Knowing that the file is really in the DELETE_PENDING state simplifies a lot. I've tested the patch v2_0001_Check... with my demo tests [1] and [2], and it definitely works. [1] https://www.postgresql.org/message-id/e5179494-715e-f8a3-266b-0cf52adac8f4%40gmail.com [2] https://www.postgresql.org/message-id/c3427edf-d7c0-ff57-90f6-b5de3bb62709@gmail.com Best regards, Alexander
В списке pgsql-hackers по дате отправления: