Re: About temporary table

From: "Dan Langille" <dan(at)langille(dot)org>
To: "jack" <datactrl(at)tpg(dot)com(dot)au>
Cc: <pgsql-sql(at)postgresql(dot)org>
Subject: Re: About temporary table
Date: 2002-03-25 04:15:36
Message-ID: 20020325041537.EE3BF3F28@bast.unixathome.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)candle(dot)pha(dot)pa(dot)us>
> To: "jack" <datactrl(at)tpg(dot)com(dot)au>
> Cc: <pgsql-sql(at)postgresql(dot)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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Lucas Rockwell 2002-03-25 04:34:46 no drop column?!
Previous Message jack 2002-03-25 04:11:16 Re: About temporary table