Re: Drop temporary table only if it exists

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Jan Wieck <JanWieck(at)Yahoo(dot)com>
Cc: Mintoo Lall <tlqmail(at)yahoo(dot)com>, pgsql-sql(at)postgresql(dot)org
Subject: Re: Drop temporary table only if it exists
Date: 2003-02-19 06:29:25
Message-ID: 200302182229.25872.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Jan,

> All temporary objects that need to persist across transactions should be
> created at session start. Everything else is created inside the
> transaction that needs it and is therefore automatically cleaned up.

That's a good idea for Mintoo: open your temporary objects inside a
transaction. Then you can dismiss them by rolling back the transaction.

> I never needed to. I might when I come around and create the next
> generation of PL that supports packages with package initialization
> functions and the like. Let's see ...

Hey, drop a line by David Fetter. He's been making noises about overhauling
PL/pgSQL.

--
Josh Berkus
Aglio Database Solutions
San Francisco

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2003-02-19 07:39:54 Re: Rule Creates Duplicates retry
Previous Message Scott Ding 2003-02-19 00:12:36 point <-> polygon not supported?