Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id D70FE6368A4 for ; Wed, 23 Jun 2010 17:43:26 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 96335-08 for ; Wed, 23 Jun 2010 20:43:18 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id C8FBF636AB1 for ; Wed, 23 Jun 2010 17:43:19 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id o5NKh6fn027713; Wed, 23 Jun 2010 16:43:06 -0400 (EDT) To: Dave Page cc: Robert Haas , Bruce Momjian , Dimitri Fontaine , Josh Berkus , postgres performance list Subject: Re: PostgreSQL as a local in-memory cache In-reply-to: References: <24597.1276803510@sss.pgh.pa.us> <201006231937.o5NJbKp05127@momjian.us> Comments: In-reply-to Dave Page message dated "Wed, 23 Jun 2010 21:27:38 +0100" Date: Wed, 23 Jun 2010 16:43:06 -0400 Message-ID: <27712.1277325786@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201006/415 X-Sequence-Number: 39271 Dave Page writes: > On Wed, Jun 23, 2010 at 9:25 PM, Robert Haas wrote: >> I don't think we need a system-wide setting for that.  I believe that >> the unlogged tables I'm working on will handle that case. > Aren't they going to be truncated at startup? If the entire system is > running without WAL, we would only need to do that in case of an > unclean shutdown wouldn't we? The problem with a system-wide no-WAL setting is it means you can't trust the system catalogs after a crash. Which means you are forced to use initdb to recover from any crash, in return for not a lot of savings (for typical usages where there's not really much churn in the catalogs). I tend to agree with Robert that a way to not log content updates for individual user tables is likely to be much more useful in practice. regards, tom lane