Re: [PATCH] Atomic pgrename on Windows

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCH] Atomic pgrename on Windows
Дата
Msg-id 18986.1585585020@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PATCH] Atomic pgrename on Windows  (David Steele <david@pgmasters.net>)
Ответы Re: [PATCH] Atomic pgrename on Windows  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
David Steele <david@pgmasters.net> writes:
> On 1/11/20 5:13 PM, Alexander Korotkov wrote:
>> Regarding "pg_stat_tmp/global.stat", which is a problem in particular
>> case, we may evade file renaming altogether.  Instead, we may
>> implement shared-memory counter for filename.  So, instead of
>> renaming, new reads will just come to new file.

> I tend to agree with Tom on the question of portability. But it seems 
> upthread we have determined that this can't be sensibly isolated into a 
> Windows-specific rename() function.
> Does anyone have any further ideas? If not I feel like this patch is 
> going to need to be RWF again.

So far as pg_stat_tmp is concerned, I think there is reasonable hope
that that problem is just going to go away in the near future.
I've not been paying attention to the shared-memory stats collector
thread so I'm not sure if that's anywhere near committable, but
I think that's clearly something we'll want once it's ready.

So if that's the main argument why we need this, it's a pretty
thin argument ...

            regards, tom lane



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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: materialization blocks hash join
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: ALTER TABLE ... SET STORAGE does not propagate to indexes