pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedsynchronous_commit and wal_writer_delay
2+ messages / 2 participants
[nested] [flat]
* synchronous_commit and wal_writer_delay
@ 2011-07-26 18:39 A J <s5aly@yahoo.com>
2011-07-26 22:50 ` Re: synchronous_commit and wal_writer_delay Jaime Casanova <jaime@2ndquadrant.com>
0 siblings, 1 reply; 2+ messages in thread
From: A J @ 2011-07-26 18:39 UTC (permalink / raw)
To: pgsql-admin
Does a synchronous_commit force WAL to be committed to disk or does it just WAIT for WAL to be committed according to WAL's set frequency to write ?
i.e. if I set wal_writer_delay=200ms and set synchronous_commit=on, will each commit wait for upto 200ms before committing ?
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: synchronous_commit and wal_writer_delay
2011-07-26 18:39 synchronous_commit and wal_writer_delay A J <s5aly@yahoo.com>
@ 2011-07-26 22:50 ` Jaime Casanova <jaime@2ndquadrant.com>
0 siblings, 0 replies; 2+ messages in thread
From: Jaime Casanova @ 2011-07-26 22:50 UTC (permalink / raw)
To: A J <s5aly@yahoo.com>; +Cc: pgsql-admin
On Tue, Jul 26, 2011 at 1:39 PM, A J <s5aly@yahoo.com> wrote:
> Does a synchronous_commit force WAL to be committed to disk or does it just
> WAIT for WAL to be committed according to WAL's set frequency to write ?
> i.e. if I set wal_writer_delay=200ms and set synchronous_commit=on, will
> each commit wait for upto 200ms before committing ?
>
no, that is synchronous...
if you set wal_writer_delay=200ms and set synchronous_commit=off then
the commit will not be wal-safe (meaning it won't resist a server
crash and you will lose data) for a short period of time (200ms in
this example)
but you shouldn't be setting synchronous_commit on postgresql.conf
normally but from the application
--
Jaime Casanova www.2ndQuadrant.com
Professional PostgreSQL: Soporte 24x7 y capacitación
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2011-07-26 22:50 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2011-07-26 18:39 synchronous_commit and wal_writer_delay A J <s5aly@yahoo.com>
2011-07-26 22:50 ` Jaime Casanova <jaime@2ndquadrant.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox