pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Steve Crawford <scrawford@pinpointresearch.com>
To: Claudio Freire <klaussfreire@gmail.com>
Cc: Eyal Wilde <eyal@impactsoft.co.il>
Cc: pgsql-performance@postgresql.org
Subject: Re: scale up (postgresql vs mssql)
Date: Fri, 13 Apr 2012 10:49:07 -0700
Message-ID: <4F886713.5020306@pinpointresearch.com> (raw)
In-Reply-To: <CAGTBQpbB+UpeCkac6J7F8CrO4kapMvBK-zp6yg9j5utmBG-Xgg@mail.gmail.com>
References: <CAMiEbcj+6ViLiAX0C3+VzhVGt5ZedMh8KCE1JTgXgEVUq+GeNw@mail.gmail.com>
	<CAGTBQpYga9Uo4n=qUPyYOkuzW+2MoDYoRnBF53jvb546=Hbbqg@mail.gmail.com>
	<4F885604.6080404@pinpointresearch.com>
	<CAGTBQpbB+UpeCkac6J7F8CrO4kapMvBK-zp6yg9j5utmBG-Xgg@mail.gmail.com>

On 04/13/2012 09:43 AM, Claudio Freire wrote:
> On Fri, Apr 13, 2012 at 1:36 PM, Steve Crawford
> <scrawford@pinpointresearch.com>  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




view thread (24+ messages)  latest in thread

Message-ID: <4F886713.5020306@pinpointresearch.com>
Permalink:  ../4F886713.5020306@pinpointresearch.com/
Also on:    postgresql.org/message-id/4F886713.5020306@pinpointresearch.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: scrawford@pinpointresearch.com, klaussfreire@gmail.com, eyal@impactsoft.co.il
  Subject: Re: scale up (postgresql vs mssql)
  In-Reply-To: <4F886713.5020306@pinpointresearch.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox