pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Kristis Makris <kristis.makris@datasoft.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Using the extract() function in plpgsql
Date: Wed, 27 Jun 2001 08:17:38 +0100
Message-ID: <3B398892.D0001CDE@archonet.com> (raw)
References: <200106202233.f5KMXSa91452@postgresql.org>
	<003701c0fa5e$722570a0$1001a8c0@archonet.com>
	<200106261958.f5QJwsa45412@postgresql.org>

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



view thread (11+ messages)  latest in thread

Message-ID: <3B398892.D0001CDE@archonet.com>
Permalink:  ../3B398892.D0001CDE@archonet.com/
Also on:    postgresql.org/message-id/3B398892.D0001CDE@archonet.com

 · 

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: dev@archonet.com, kristis.makris@datasoft.com
  Subject: Re: Using the extract() function in plpgsql
  In-Reply-To: <3B398892.D0001CDE@archonet.com>

* 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