Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 55D5B633140 for ; Tue, 25 May 2010 07:01:45 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 41760-01 for ; Tue, 25 May 2010 10:01:37 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from www64.your-server.de (www64.your-server.de [213.133.104.64]) by mail.postgresql.org (Postfix) with ESMTP id 59E0D632F8E for ; Tue, 25 May 2010 07:01:38 -0300 (ADT) Received: from [78.46.5.204] (helo=sslproxy02.your-server.de) by www64.your-server.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1OGqo9-0004EH-LP for pgsql-performance@postgresql.org; Tue, 25 May 2010 11:52:21 +0200 Received: from [217.89.104.238] (helo=lisa.local.iathh.de) by sslproxy02.your-server.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1OGr9y-0000Qn-Th for pgsql-performance@postgresql.org; Tue, 25 May 2010 12:14:54 +0200 Received: from [10.22.0.6] ([10.22.0.6]) (authenticated user joachim.worringen@iathh.de) by lisa.local.iathh.de (Kerio MailServer 6.7.3 patch 1); Tue, 25 May 2010 11:52:12 +0200 Message-ID: <4BFB9DD4.5030702@iathh.de> Date: Tue, 25 May 2010 11:52:20 +0200 From: Joachim Worringen Organization: IAT GmbH User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.1.9) Gecko/20100317 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: pgsql-performance@postgresql.org Subject: Re: performance of temporary vs. regular tables References: <4BFB837C.6010005@iathh.de> <4BFB91A8.20805@iathh.de> <4BFB991E.40407@iathh.de> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Authenticated-Sender: office@iathh.de X-Virus-Scanned: Clear (ClamAV 0.96/11075/Tue May 25 01:21:58 2010) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201005/173 X-Sequence-Number: 38757 Am 25.05.2010 11:38, schrieb Grzegorz Jaƛkiewicz: > WAL does the same thing to DB journaling does to the FS. > Plus allows you to roll back (PITR). > > As for the RAM, it will be in ram as long as OS decides to keep it in > RAM cache, and/or its in the shared buffers memory. Or until I commit the transaction? I have not completely disabled sync-to-disk in my setup, as there are of course situations where new data comes into the database that needs to be stored in a safe manner. > Unless you have a lot of doubt about the two, I don't think it makes > too much sens to setup ramdisk table space yourself. But try it, and > see yourself. > Make sure that you have logic in place, that would set it up, before > postgresql starts up, in case you'll reboot, or something. That's what I thought about when mentioning "increased setup complexity". Simply adding a keyword like "NONPERSISTENT" to the table creation statement would be preferred... Joachim