Re: Will modifications to unlogged tables also be flused to disk? - Mailing list pgsql-general

From Clemens Eisserer
Subject Re: Will modifications to unlogged tables also be flused to disk?
Date
Msg-id CAFvQSYSLV530A_KCq+PpMO=ttrWYGtCbYezKZ2uM9j_9-7KCAw@mail.gmail.com
Whole thread Raw
In response to Re: Will modifications to unlogged tables also be flused to disk?  (Luca Ferrari <fluca1978@infinito.it>)
List pgsql-general
Hi Andres,

> No fsyncs will be issued in the common paths, and they won't be written
> to disk by !shutdown checkpoints. But they *will* be written to disk if
> there's not enough space in shared_buffers for all the data.

With unlogged tables I still see data written to the device every 10
seconds, so I did some digging and found bgwriter_delay = 10000, again
with an artifical 10s limit applied on the parameter. To disable
background writing, I set bgwriter_lru_maxpages = 0 which seems to
help.

What is left, is the wal-writer-process which still seems to fsync
every 10s, even though there is no data written to any logged table.

Regards, Clemens


pgsql-general by date:

Previous
From: Luca Ferrari
Date:
Subject: Re: Will modifications to unlogged tables also be flused to disk?
Next
From: David Johnston
Date:
Subject: Re: type aliases