Re: Temp tables being written to disk. Avoidable? - Mailing list pgsql-sql

From Tom Lane
Subject Re: Temp tables being written to disk. Avoidable?
Date
Msg-id 24380.997847877@sss.pgh.pa.us
Whole thread Raw
In response to Temp tables being written to disk. Avoidable?  (Paul McGarry <PaulM@opentec.com.au>)
List pgsql-sql
Paul McGarry <PaulM@opentec.com.au> writes:
> Can I avoid having the temp table written to disk

Not at present --- temp tables are not different from real tables,
except for some naming shenanigans.  So creation of a temp table will
involve some disk hits.

Do you really *need* a temp table, as opposed to writing a
sub-SELECT-in-the-FROM-clause?  ISTM that that feature takes care
of most of the simple notational reasons for wanting a temp table.
        regards, tom lane


pgsql-sql by date:

Previous
From: Christophe Labouisse
Date:
Subject: pg_ctl start hangs
Next
From: "Jayson Callaway"
Date:
Subject: SQL Statement too long