Re: Atomic rename feature for Windows. - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Atomic rename feature for Windows.
Date
Msg-id CA+TgmobjKR-V=cZ3ScZMmOm8M2a_ppW0mkwWQrLVv7Z4aQBg1Q@mail.gmail.com
Whole thread Raw
In response to Re: Atomic rename feature for Windows.  (Andres Freund <andres@anarazel.de>)
Responses Re: Atomic rename feature for Windows.  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
On Wed, Apr 13, 2022 at 11:03 AM Andres Freund <andres@anarazel.de> wrote:
> > Next decade's hot new processor design might do things
> > differently enough that it matters that we use SpinLockInit()
> > not memset-to-zero.  This is not academic either, as we've had
> > exactly such bugs in the past.
>
> FWIW, I'l like to make spinlocks and atomics assert out if they've not
> been initialized (which'd include preventing uninitialized use of
> lwlocks). It's easy to accidentally zero out the state or start out
> uninitialized. Right now nothing will complain on platforms created
> after 1700 or using --disable-spinlocks --disable-atomics. That should
> be caught well before running on the buildfarm...

I don't understand this bit about platforms created after 1700. Before
1700, they didn't even have computers.

Am I being really dense here?

-- 
Robert Haas
EDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: make MaxBackends available in _PG_init
Next
From: Andres Freund
Date:
Subject: Re: Atomic rename feature for Windows.