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

From Jeff Janes
Subject Re: Will modifications to unlogged tables also be flused to disk?
Date
Msg-id CAMkU=1xr5bAX+geeQm9r3hki3VesW7vt_iPpRP_a+S04SuxXyg@mail.gmail.com
Whole thread Raw
In response to Will modifications to unlogged tables also be flused to disk?  (Clemens Eisserer <linuxhippy@gmail.com>)
Responses Re: Will modifications to unlogged tables also be flused to disk?  (frank <halldu0815@gmail.com>)
List pgsql-general
On Sat, Feb 15, 2014 at 3:03 AM, Clemens Eisserer <linuxhippy@gmail.com> wrote:
Hi,

I would like to use postgresql's unlogged tables on an embedded system
to avoid frequent writes to flash memory.
While documentation clearly states that unlogged tables don't have to
go through the WAL,

That's not really true.  There are no per-row WAL records.  There is still a per-transaction WAL record, the commit record. If you only care about the timing of the WAL and not the volume, changing to unlogged will not make a difference.  (These commit-only records are automatically dealt with asynchronously, even if synchronous-commit is on.)

Cheers,

Jeff


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Deleted files still open long after droping a database
Next
From: Devrim GÜNDÜZ
Date:
Subject: Re: CREATE EXTENSION does not seem to work in 9.2