Re: Bg_writer and checkpointer

From: Rajesh Kumar <rajeshkumar(dot)dba09(at)gmail(dot)com>
To: Pgsql-admin <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: Bg_writer and checkpointer
Date: 2024-04-20 09:40:57
Message-ID: CAJk5AtYEmSw264V19my8n_mVzx7iytib3c5+H96=z5ktN2VaZA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Help me with clear information plz

On Fri, 19 Apr 2024, 20:46 Rajesh Kumar, <rajeshkumar(dot)dba09(at)gmail(dot)com>
wrote:

> I have read multiple online blogs, watched videos and still not clarified
> about 1. Actual difference between bg_writer and checkpointer. When I am
> querying update set, If bgwriter flushes dirty buffer to base every
> 200ms(bgwriter_delay), why would I need checkpointer to invoke bgwriter?
> Same way, what happens for insert query?
>
> 1. How the flow works?
>
> Dml-->wal_buffer-->also copied to shared_buffer--> commit-->flushed to
> pg_wal using wal writer -->checkpointer-->fsync to datapath-->bgwriter
> flushed to base.
>
>
> Correct me the flowchart
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Sathish Reddy 2024-04-20 10:54:09 Set fillfactor to partition child tables
Previous Message Scott Ribe 2024-04-20 03:10:22 Re: Intermittent Query Performance Issue