Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 302BB632208 for ; Thu, 17 Jun 2010 16:38:50 -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 33132-06 for ; Thu, 17 Jun 2010 19:38:42 +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 B0E766302CB for ; Thu, 17 Jun 2010 16:38:42 -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 o5HJcUWR024598; Thu, 17 Jun 2010 15:38:30 -0400 (EDT) To: Dimitri Fontaine cc: Josh Berkus , postgres performance list Subject: Re: PostgreSQL as a local in-memory cache In-reply-to: References: <18287446-8677-46d6-a581-c4777f60ebda@40g2000pry.googlegroups.com> <4C1A5B81.8050908@agliodbs.com> Comments: In-reply-to Dimitri Fontaine message dated "Thu, 17 Jun 2010 21:01:19 +0200" Date: Thu, 17 Jun 2010 15:38:30 -0400 Message-ID: <24597.1276803510@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/315 X-Sequence-Number: 39171 Dimitri Fontaine writes: > Josh Berkus writes: >> a) Eliminate WAL logging entirely >> b) Eliminate checkpointing >> c) Turn off the background writer >> d) Have PostgreSQL refuse to restart after a crash and instead call an >> exteral script (for reprovisioning) > Well I guess I'd prefer a per-transaction setting, allowing to bypass > WAL logging and checkpointing. Not going to happen; this is all or nothing. > Forcing the backend to care itself for > writing the data I'm not sure is a good thing, but if you say so. Yeah, I think proposal (c) is likely to be a net loss. (a) and (d) are probably simple, if by "reprovisioning" you mean "rm -rf $PGDATA; initdb". Point (b) will be a bit trickier because there are various housekeeping activities tied into checkpoints. I think you can't actually remove checkpoints altogether, just skip the flush-dirty-pages part. regards, tom lane