Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 605E6632997 for ; Wed, 23 Jun 2010 17:45:27 -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 98114-02 for ; Wed, 23 Jun 2010 20:45:19 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from momjian.us (momjian.us [70.90.9.53]) by mail.postgresql.org (Postfix) with ESMTP id 2360B631ADA for ; Wed, 23 Jun 2010 17:45:20 -0300 (ADT) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id o5NKj9304331; Wed, 23 Jun 2010 16:45:09 -0400 (EDT) From: Bruce Momjian Message-Id: <201006232045.o5NKj9304331@momjian.us> Subject: Re: PostgreSQL as a local in-memory cache In-Reply-To: <27712.1277325786@sss.pgh.pa.us> To: Tom Lane Date: Wed, 23 Jun 2010 16:45:09 -0400 (EDT) CC: Dave Page , Robert Haas , Dimitri Fontaine , Josh Berkus , postgres performance list X-Mailer: ELM [version 2.4ME+ PL124 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="UNKNOWN-8BIT" 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/416 X-Sequence-Number: 39272 Tom Lane wrote: > 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 True, and in fact any postmaster crash could lead to curruption. > 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. OK, TODO removed. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + None of us is going to be here forever. +