Re: creating a temp table in a function

From: Ivan Sergio Borgonovo <mail(at)webthatworks(dot)it>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: creating a temp table in a function
Date: 2008-04-04 19:53:57
Message-ID: 20080404215357.0e73499a@webthatworks.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 4 Apr 2008 09:13:18 -0700
"Shahaf Abileah" <shahaf(at)redfin(dot)com> wrote:

> I have a function that creates a temp table and drops it on
> commit. If I run the function twice in the same psql interactive
> session, I get an error. If I run it twice in two different psql
> sessions (using the -c flag), I get no error. Is this expected
> behavior? If so, why?

http://www.postgresql.org/docs/faqs.FAQ.html#item4.19

?

--
Ivan Sergio Borgonovo
http://www.webthatworks.it

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2008-04-04 20:12:44 Re: modules
Previous Message Andreas 'ads' Scherbaum 2008-04-04 19:47:18 Re: creating a temp table in a function