Re: making an unlogged table logged - Mailing list pgsql-hackers

From David Fetter
Subject Re: making an unlogged table logged
Date
Msg-id 20110105144816.GD7308@fetter.org
Whole thread Raw
In response to Re: making an unlogged table logged  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: making an unlogged table logged  (Rob Wultsch <wultsch@gmail.com>)
List pgsql-hackers
On Wed, Jan 05, 2011 at 09:04:08AM -0500, Robert Haas wrote:
> On Tue, Jan 4, 2011 at 10:56 PM, Rob Wultsch <wultsch@gmail.com> wrote:
> > 1. Could the making a table logged be a non-exclusive lock if the
> > ALTER is allowed to take a full checkpoint?
> 
> No, that doesn't solve either of the two problems I described,
> unfortunately.
> 
> > 2. Unlogged to logged has giant use case.
> 
> Agree.
> 
> > 3. In MySQL I have had to ALTER tables to engine BLACKHOLE because
> > they held data that was not vital, but the server was out of IO.
> > Going logged -> unlogged has a significant placed, I think.
> 
> Interesting.  So you'd change a logged table into an unlogged table
> to cut down on I/O, and take the risk of losing the data if the
> server went down?

BLACKHOLE is a "storage engine" that's equivalent to /dev/null, so it
wasn't a risk /per se/.

Cheers,
David.
-- 
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.com
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_upgrade patches applied
Next
From: Rob Wultsch
Date:
Subject: Re: making an unlogged table logged