pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dan Langille <dan@langille.org>
To: jack <datactrl@tpg.com.au>
Cc: pgsql-sql@postgresql.org
Subject: Re: About temporary table
Date: Sun, 24 Mar 2002 23:15:36 -0500
Message-ID: <20020325041537.EE3BF3F28@bast.unixathome.org> (raw)
In-Reply-To: <006b01c1d3b3$1c72b210$1400a8c0@jac>

Why don't you just create it at the start of where it is needed and then 
never worry about it.  It is automatically deleted when the session 
finishes.

On 25 Mar 2002 at 14:11, jack wrote:

> But when I write SQL in pl/pgSQL, I can't test to drop a temporary table. If
> it fails, the whole procedure will be aborted. That's my problem!
> 
> JACK
> 
> ----- Original Message -----
> From: "Bruce Momjian" <pgman@candle.pha.pa.us>
> To: "jack" <datactrl@tpg.com.au>
> Cc: <pgsql-sql@postgresql.org>
> Sent: Monday, March 25, 2002 1:54 PM
> Subject: Re: [SQL] About temporary table
> 
> 
> > jack wrote:
> > > HI,
> > >
> > > I installed postgreSql v7.2. There is a question about temporary tables.
> How
> > > can I drop a temporary table only if it exists? Thank you!
> >
> > Uh, just issue the drop and ignore the possible error.

-- 
Dan Langille
The FreeBSD Diary - http://freebsddiary.org/ - practical examples




view thread (7+ messages)  latest in thread

Message-ID: <20020325041537.EE3BF3F28@bast.unixathome.org>
Permalink:  ../20020325041537.EE3BF3F28@bast.unixathome.org/
Also on:    postgresql.org/message-id/20020325041537.EE3BF3F28@bast.unixathome.org

 · 

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: dan@langille.org, datactrl@tpg.com.au
  Subject: Re: About temporary table
  In-Reply-To: <20020325041537.EE3BF3F28@bast.unixathome.org>

* 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