Re: [PATCH] Atomic pgrename on Windows - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [PATCH] Atomic pgrename on Windows
Date
Msg-id 18986.1585585020@sss.pgh.pa.us
Whole thread Raw
In response to Re: [PATCH] Atomic pgrename on Windows  (David Steele <david@pgmasters.net>)
Responses Re: [PATCH] Atomic pgrename on Windows
List 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 by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: materialization blocks hash join
Next
From: Alvaro Herrera
Date:
Subject: Re: ALTER TABLE ... SET STORAGE does not propagate to indexes