pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Paul McGarry <PaulM@opentec.com.au>
Cc: 'pgsql-sql@postgresql.org' <pgsql-sql@postgresql.org>
Subject: Re: Temp tables being written to disk. Avoidable?
Date: Tue, 14 Aug 2001 23:57:57 -0400
Message-ID: <24380.997847877@sss.pgh.pa.us> (raw)
In-Reply-To: <F3FC09F8BCF8D411B73B00D0B7BD06E60F7069@otnrnsx1.opentec.com.au>
References: <F3FC09F8BCF8D411B73B00D0B7BD06E60F7069@otnrnsx1.opentec.com.au>

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



view thread (6+ messages)  latest in thread

Message-ID: <24380.997847877@sss.pgh.pa.us>
Permalink:  ../24380.997847877@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/24380.997847877@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-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, PaulM@opentec.com.au
  Subject: Re: Temp tables being written to disk. Avoidable?
  In-Reply-To: <24380.997847877@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