Re: Sequence of processing: WAL / shared buffers - Mailing list pgsql-novice

From Wei Shan
Subject Re: Sequence of processing: WAL / shared buffers
Date
Msg-id CAFe9ZToZy6tqSUmsNZaRi7igQzw5oQfo1hqO6RBoU3zGd-w4uQ@mail.gmail.com
Whole thread Raw
In response to Sequence of processing: WAL / shared buffers  (Jürgen Purtz <juergen@purtz.de>)
Responses Re: Sequence of processing: WAL / shared buffers
List pgsql-novice
Hi Jurgen,

If synchronous_commit is enabled, transaction commit will wait for WAL records to be written to disk before the command returns a "success" indication to the client. Shared buffers is not involved when commit is issued.  For flushing of shared buffers to data files, we can use checkpoint instead. BGWR in charge of writing shared_buffers to the datafiles. 

Thanks!

On 28 January 2016 at 19:49, Jürgen Purtz <juergen@purtz.de> wrote:
Hi,

can anyone explain, what happens first during an UPDATE of an indexed column: writing and flushing to WAL or modification of shared buffers? And: both actions are finished before a confirmation is send to the requesting client - or?

Regards, Jürgen Purtz




--
Sent via pgsql-novice mailing list (pgsql-novice@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-novice



--
Regards,
Ang Wei Shan

pgsql-novice by date:

Previous
From: Jürgen Purtz
Date:
Subject: Sequence of processing: WAL / shared buffers
Next
From: Jürgen Purtz
Date:
Subject: Re: Sequence of processing: WAL / shared buffers