Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 95E9015A7DE2 for ; Fri, 13 Apr 2012 14:49:18 -0300 (ADT) Received: from cerberus.pinpointresearch.com ([66.7.238.130] helo=polaris.pinpointresearch.com) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SIkcX-00070N-J0 for pgsql-performance@postgresql.org; Fri, 13 Apr 2012 17:49:18 +0000 Received: from betelgeuse.pinpointresearch.com (betelgeuse.pinpointresearch.com [192.168.1.179]) by polaris.pinpointresearch.com (Postfix) with ESMTP id DA77FE00EC85; Fri, 13 Apr 2012 10:49:04 -0700 (PDT) Message-ID: <4F886713.5020306@pinpointresearch.com> Date: Fri, 13 Apr 2012 10:49:07 -0700 From: Steve Crawford User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.27) Gecko/20120216 Lightning/1.0b2 Thunderbird/3.1.19 MIME-Version: 1.0 To: Claudio Freire CC: Eyal Wilde , pgsql-performance@postgresql.org Subject: Re: scale up (postgresql vs mssql) References: <4F885604.6080404@pinpointresearch.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201204/107 X-Sequence-Number: 46753 On 04/13/2012 09:43 AM, Claudio Freire wrote: > On Fri, Apr 13, 2012 at 1:36 PM, Steve Crawford > wrote: >> If they are permanent tables used for temporary storage then making them >> unlogged may be beneficial. But actual temporary tables *are* unlogged and >> attempting to create an unlogged temporary table will raise an error. > Interesting, yes, I was wondering why PG didn't make temp tables > unlogged by default. > > Then, I guess, the docs[0] have to mention it. Especially due to the > error condition. Right? > > [0] http://www.postgresql.org/docs/9.1/static/sql-createtable.html > Well, the fact that temporary and unlogged cannot be simultaneously specified *is* documented: CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } | UNLOGGED ] TABLE [ IF NOT EXISTS ] table_name But it would probably be worth adding a note under the description of temporary tables that they are, in fact, unlogged. Cheers, Steve