pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: James Mansion <james@mansionfamily.plus.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: temp tables
Date: Thu, 13 Mar 2008 20:01:45 -0400
Message-ID: <27663.1205452905@sss.pgh.pa.us> (raw)
In-Reply-To: <47D9A5E7.1010802@mansionfamily.plus.com>
References: <47D9A5E7.1010802@mansionfamily.plus.com>

James Mansion <james@mansionfamily.plus.com> writes:
> Do CREATE TEMP TABLE table have any special treatment regarding eliding 
> sync operations

Yes; neither fsync nor WAL-writing is done for temp tables.

> or deferring creation of disk files in the case where memory pressure 
> does not require a spill?

No.  The trouble with doing something like that is we might be forced to
report an out-of-disk-space failure at some quite unintuitive point,
like during a SELECT.

			regards, tom lane



view thread (2+ messages)

Message-ID: <27663.1205452905@sss.pgh.pa.us>
Permalink:  ../27663.1205452905@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/27663.1205452905@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, james@mansionfamily.plus.com
  Subject: Re: temp tables
  In-Reply-To: <27663.1205452905@sss.pgh.pa.us>

* 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