Re: WALWriteLock - Mailing list pgsql-admin

From Jeff Janes
Subject Re: WALWriteLock
Date
Msg-id CAMkU=1yCHs98qsSEPvkR5-kLY4Zi0au0cwd1-xUWM8Kzfyo9pA@mail.gmail.com
Whole thread Raw
In response to WALWriteLock  (Yambu <hyambu@gmail.com>)
Responses Re: WALWriteLock  (Vijaykumar Jain <vijaykumarjain.github@gmail.com>)
List pgsql-admin
On Tue, Jul 6, 2021 at 10:14 AM Yambu <hyambu@gmail.com> wrote:
Hello

I'm seeing a lot of WALWriteLocks , is this a bad sign , what might cause this?

Are you having a performance problem you are trying to track down?  If so, this probably indicates the cause.  If not, then it is probably not a bad sign.

The likely cause is that multiple sessions are trying to COMMIT at the same time, and are blocking on the slow fsync of the WAL data.  One process will block on WALSync, all the ones queued up behind it will block on WALWrite.

Cheers,

Jeff

pgsql-admin by date:

Previous
From: Vijaykumar Jain
Date:
Subject: Re: Patroni configuration issue
Next
From: Jeff Janes
Date:
Subject: Re: D in top results for checkpoint