Re: Will modifications to unlogged tables also be flused to disk?

From: Clemens Eisserer <linuxhippy(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Will modifications to unlogged tables also be flused to disk?
Date: 2014-02-15 13:16:50
Message-ID: CAFvQSYSLV530A_KCq+PpMO=ttrWYGtCbYezKZ2uM9j_9-7KCAw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Johnston 2014-02-15 15:57:44 Re: type aliases
Previous Message Luca Ferrari 2014-02-15 11:58:21 Re: Will modifications to unlogged tables also be flused to disk?