Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 468CA9FBD8F for ; Wed, 21 Feb 2007 17:37:13 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 09061-06 for ; Wed, 21 Feb 2007 17:37:09 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.188]) by postgresql.org (Postfix) with ESMTP id F17239FBD92 for ; Wed, 21 Feb 2007 17:37:08 -0400 (AST) Received: from [194.25.154.138] (helo=webserv.wug.de) by mrelayeu.kundenserver.de (node=mrelayeu6) with ESMTP (Nemesis), id 0ML29c-1HJz99033Y-0000qT; Wed, 21 Feb 2007 22:37:07 +0100 Received: from kretschmer by webserv.wug.de with local (Exim 3.36 #1) id 1HJz98-0002GY-00 for pgsql-sql@postgresql.org; Wed, 21 Feb 2007 22:37:06 +0100 Date: Wed, 21 Feb 2007 22:37:06 +0100 From: "A. Kretschmer" To: pgsql-sql@postgresql.org Subject: Re: Problems with temp table and PL Message-ID: <20070221213706.GA8665@a-kretschmer.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-OS: Debian/GNU Linux - weil ich es mir Wert bin! X-Message-Flag: "Windows" is not the answer. "Windows" is the question and the answer is "no"! User-Agent: Mutt/1.5.9i X-Provags-ID: kundenserver.de abuse@kundenserver.de login:51ea9561fc3f6d9539a2acd743e4748c X-Provags-ID2: V01U2FsdGVkX1+9nmoOfbawox4XqKKoxSUpn1nH1sAZZqhrYLHsRVGwURu2Td2s8s0q7M7fPOWNHdnievFoECr53kVQWnm2HEy3NoUfJVY1syxUHK6HJfIxX9VdkFAJ5gnz X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.449 tagged_above=0 required=5 tests=AWL, BAYES_50, SPF_HELO_PASS X-Spam-Level: X-Archive-Number: 200702/217 X-Sequence-Number: 27551 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