Re: unlogged tables - Mailing list pgsql-hackers

From Greg Stark
Subject Re: unlogged tables
Date
Msg-id AANLkTinq_pj3aL04oLTe-nx-jEw0mUqkeLOtCZv7creL@mail.gmail.com
Whole thread Raw
In response to Re: unlogged tables  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: unlogged tables
Re: unlogged tables
List pgsql-hackers
On Wed, Nov 17, 2010 at 3:11 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Heikki Linnakangas <heikki.linnakangas@enterprisedb.com> writes:
>> fsync()ing the file at shutdown doesn't seem too bad to me from
>> performance point of view, we tolerate that for all other tables. And
>> you can always truncate the table yourself before shutdown.
>
> The objection to that was not about performance.  It was about how
> to find out what needs to be fsync'd.
>

Just a crazy brainstorming thought, but....

If this is a clean shutdown then all the non-unlogged tables have been
checkpointed so they should have no dirty pages in them anyways. So we
could just fsync everything.

--
greg


pgsql-hackers by date:

Previous
From: Markus Wanner
Date:
Subject: Re: changing MyDatabaseId
Next
From: "Ross J. Reedstrom"
Date:
Subject: Re: contrib: auth_delay module