Re: wal segment size - Mailing list pgsql-general

From Laurenz Albe
Subject Re: wal segment size
Date
Msg-id cdea7a44c8c696d762118d40295fded2f6493010.camel@cybertec.at
Whole thread Raw
In response to Re: wal segment size  (Andrew <adhenry.9@gmail.com>)
Responses Re: wal segment size
List pgsql-general
On Fri, 2025-12-19 at 09:26 +0100, Andrew wrote:
> As an oracle dba new to Postgres, I’m used to the concept of context switches and latch issues
> with regards to transaction log switches. Does Postgres have a similar mechanism with latching
> etc when it switches to a new wal segment that is alleviated when increasing the size of the
> wal segments?

Not really.  PostgreSQL doesn't reuse WAL segments in a circular fashion like Oracle does.
At the end of a checkpoint, it creates new, empty WAL segments for future use, so if there
is a need to switch to a new segment, there is no need to wait for anything.

Yours,
Laurenz Albe



pgsql-general by date:

Previous
From: Andrus
Date:
Subject: How to get single table data from backup
Next
From: "Colin 't Hart"
Date:
Subject: Re: wal segment size