From: | David Fetter <david(at)fetter(dot)org> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | Rob Wultsch <wultsch(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: making an unlogged table logged |
Date: | 2011-01-05 14:48:16 |
Message-ID: | 20110105144816.GD7308@fetter.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)gmail(dot)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(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Rob Wultsch | 2011-01-05 15:10:14 | Re: making an unlogged table logged |
Previous Message | Tom Lane | 2011-01-05 14:39:12 | Re: pg_upgrade patches applied |