pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Murray Prior Hobbs <murray@efone.com>
To: pgsql-sql@postgresql.org
Subject: temporary tables, plpgsql and yes i bet this has been asked before
Date: Mon, 04 Feb 2002 21:32:09 +1100
Message-ID: <3C5E6329.3000805@efone.com> (raw)


in a plpgsql function

    create temporary table X

    ....


    drop table X


then in another function

    loop

        call the other function

    end loop
   

i get the problem that the second time the table is created (ie in the 
second call) it is not visible

now yes i could declare the table in the calling funtion but then the 
original function is less useful to me

any clues?

murray





view thread (12+ messages)  latest in thread

Message-ID: <3C5E6329.3000805@efone.com>
Permalink:  ../3C5E6329.3000805@efone.com/
Also on:    postgresql.org/message-id/3C5E6329.3000805@efone.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: murray@efone.com
  Subject: Re: temporary tables, plpgsql and yes i bet this has been asked before
  In-Reply-To: <3C5E6329.3000805@efone.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