Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id BA0482E3100 for ; Thu, 13 Mar 2008 21:01:59 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 39153-08 for ; Thu, 13 Mar 2008 21:01:46 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 337132E30C7 for ; Thu, 13 Mar 2008 21:01:53 -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 m2E01jWa027664; Thu, 13 Mar 2008 20:01:45 -0400 (EDT) To: James Mansion cc: pgsql-performance@postgresql.org Subject: Re: temp tables In-reply-to: <47D9A5E7.1010802@mansionfamily.plus.com> References: <47D9A5E7.1010802@mansionfamily.plus.com> Comments: In-reply-to James Mansion message dated "Thu, 13 Mar 2008 22:08:39 -0000" Date: Thu, 13 Mar 2008 20:01:45 -0400 Message-ID: <27663.1205452905@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200803/293 X-Sequence-Number: 29247 James Mansion 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