Re: Initdb-time block size specification - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Initdb-time block size specification
Date
Msg-id ZJ9eyYSNt0Ge+bMp@momjian.us
Whole thread Raw
In response to Re: Initdb-time block size specification  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
On Fri, Jun 30, 2023 at 06:58:20PM -0400, Bruce Momjian wrote:
> I just got a new server:
> 
>     https://momjian.us/main/blogs/blog/2023.html#June_28_2023
> 
> so tested this on my new M.2 NVME storage device:
> 
>     $ /sys/block/nvme0n1/queue/physical_block_size
>     262144
> 
> that's 256k, not 4k.

I have another approach to this.  My storage device has power
protection, so even though it has a 256k physical block size, it should
be fine with 4k write atomicity.

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EDB                                      https://enterprisedb.com

  Only you can decide what is important to you.



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Initdb-time block size specification
Next
From: Andres Freund
Date:
Subject: Re: Initdb-time block size specification