pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alexander Stetsenko <as@anapa.org.ru>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Trouble with creating tempoprary tables in plpgsql
Date: Fri, 09 Jun 2000 12:48:39 +0400
Message-ID: <3940AF67.828BFA6E@anapa.org.ru> (raw)

Hi
I create some temporary tables in plpgsql function:
"create temp table as select * ..."
all works if I execute this function standalone 
but if this function is called by another function more then once
temp tables can`t be create because ones exists
I was trying bypass this first create temp tables and after insert to
them data
but error arised when I wrote "create temp table( some params );" or
"drop table ..."
Help me please
How can I avoid a need to create static tables
and how can I drop temporary tables If it is possible :-)
Thank you 
-- 
    "The Element"
C  o  m  p  u  t  e  r 
Information & Systems    
Company: http://element.anapa.org.ru



Message-ID: <3940AF67.828BFA6E@anapa.org.ru>
Permalink:  ../3940AF67.828BFA6E@anapa.org.ru/
Also on:    postgresql.org/message-id/3940AF67.828BFA6E@anapa.org.ru

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: as@anapa.org.ru, tgl@sss.pgh.pa.us
  Subject: Re: Trouble with creating tempoprary tables in plpgsql
  In-Reply-To: <3940AF67.828BFA6E@anapa.org.ru>
  References: <3940AF67.828BFA6E@anapa.org.ru>

* 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