Re: Using the extract() function in plpgsql - Mailing list pgsql-sql

From Richard Huxton
Subject Re: Using the extract() function in plpgsql
Date
Msg-id 3B398892.D0001CDE@archonet.com
Whole thread Raw
In response to Re: Using the extract() function in plpgsql  (Kristis Makris <kristis.makris@datasoft.com>)
Responses Re: Using the extract() function in plpgsql
List pgsql-sql
Kristis Makris wrote:
> 
> Creating the temporary table first, and then inserting into it seems to
> be a *somehow* functional workaround. However, the function cannot be
> called again a second time during the same session, since the temporary
> table already exists. Is there a way a table can be created  truly
> temporary, existing only within the scope of a plpgsql function?

You could drop the temporary table at the end of the function, or do you
need something more than that?

- Richard Huxton


pgsql-sql by date:

Previous
From: Jie Liang
Date:
Subject: session detect and terminate
Next
From: "David M. Richter"
Date:
Subject: Re: Plsql Function with error: No space left on device.