Re: Proposal for unlogged tables - Mailing list pgsql-performance

From Andres Freund
Subject Re: Proposal for unlogged tables
Date
Msg-id 20160104171640.GF28025@awork2.anarazel.de
Whole thread Raw
In response to Re: Proposal for unlogged tables  (Mark Zealey <mark@allaroundtheworld.fr>)
List pgsql-performance
On 2016-01-04 19:12:22 +0200, Mark Zealey wrote:
> If there was a command to flush a specific unlogged table to disk it would
> work around all these issues no? Perhaps if you marked the table as read
> only at the same time it would flush it to disk and ensure no more data
> could be written to it eg (ALTER TABLE ... SET READ ONLY on an unlogged
> table would flush + not truncate after crash). In our case this would be
> great as we want to use these as permanent tables for speed; but after an
> initial data dump we don't change the data again so we could just do this at
> the end of the import process.

It's more complex than that, even unmodified tables need to be processed
by vacuum every now and then (xid wraparound handling). It probably
possible to work around such things, but it's not a line or ten.

Andres


pgsql-performance by date:

Previous
From: Mark Zealey
Date:
Subject: Re: Proposal for unlogged tables
Next
From: Tom McLoughlin
Date:
Subject: Materialized view performance problems