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

From: Andres Freund <andres(at)2ndquadrant(dot)com>
To: Clemens Eisserer <linuxhippy(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Will modifications to unlogged tables also be flused to disk?
Date: 2014-02-15 11:47:57
Message-ID: 20140215114757.GE20973@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

On 2014-02-15 12:22:56 +0100, Clemens Eisserer wrote:
> > They will lost after a crash, but after a regular shutdown / restart all
> > data in the table.
>
> Yes, the semantics are clearly stated in the documentation.
> What I wonder is whether postgresql will issue flush/fsync operations
> when unlogged tables are modified?

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.

Greetings,

Andres Freund

--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Luca Ferrari 2014-02-15 11:58:21 Re: Will modifications to unlogged tables also be flused to disk?
Previous Message Clemens Eisserer 2014-02-15 11:38:33 Re: Will modifications to unlogged tables also be flused to disk?