Re: insert select fails inside of function - Mailing list pgsql-general

From Tom Lane
Subject Re: insert select fails inside of function
Date
Msg-id 19404.1340399382@sss.pgh.pa.us
Whole thread Raw
In response to Re: insert select fails inside of function  (Benedict Holland <benedict.m.holland@gmail.com>)
List pgsql-general
Benedict Holland <benedict.m.holland@gmail.com> writes:
> Thanks for the response. The PG version is 9.0. I can't really give you the
> text of the function unfortunately. I know though that there isn't any
> aliasing issues occurring. After commenting out all but one line, I have it
> down to, not a insert select but a

> create temp table t1(id, ...) as
> select (a few columns with names that don't match)
> where etc.

Hm.  A CREATE TABLE AS SELECT case works for me in 9.0.8.  Perhaps you
could sanitize what you've got into a small self-contained test case?

            regards, tom lane

pgsql-general by date:

Previous
From: Benedict Holland
Date:
Subject: Re: insert select fails inside of function
Next
From: Jeff Davis
Date:
Subject: Re: Feature discussion: Should syntax errors abort a transaction?