Re: Problems with temp table and PL - Mailing list pgsql-sql

From A. Kretschmer
Subject Re: Problems with temp table and PL
Date
Msg-id 20070221213706.GA8665@a-kretschmer.de
Whole thread Raw
In response to Problems with temp table and PL  (Martin Marques <martin@bugs.unl.edu.ar>)
List pgsql-sql
am  Wed, dem 21.02.2007, um 18:17:50 -0300 mailte Martin Marques folgendes:
> I create a temp table inside a plpgsql function, which is drop just before 
> ending (the function).
> 
> My problem is that if I execute the same function again (in the same 
> session) I get an error when trying to insert data into it (looks like the 
> session has an old reference of the table):

Right. Use EXECUTE for DDL-commands.


Andreas
-- 
Andreas Kretschmer
Kontakt:  Heynitz: 035242/47150,   D1: 0160/7141639 (mehr: -> Header)
GnuPG-ID:   0x3FFF606C, privat 0x7F4584DA   http://wwwkeys.de.pgp.net


pgsql-sql by date:

Previous
From: Andrew Sullivan
Date:
Subject: Re: Problems with temp table and PL
Next
From: "Sabin Coanda"
Date:
Subject: How compare current_setting(..) ?