Re: About temporary table - Mailing list pgsql-sql

From Dan Langille
Subject Re: About temporary table
Date
Msg-id 20020325041537.EE3BF3F28@bast.unixathome.org
Whole thread Raw
In response to Re: About temporary table  ("jack" <datactrl@tpg.com.au>)
List pgsql-sql
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



pgsql-sql by date:

Previous
From: "jack"
Date:
Subject: Re: About temporary table
Next
From: "Dan Langille"
Date:
Subject: Re: [ADMIN] no drop column?!