Re: insert select fails inside of function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Benedict Holland <benedict(dot)m(dot)holland(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: insert select fails inside of function
Date: 2012-06-22 21:09:42
Message-ID: 19404.1340399382@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Benedict Holland <benedict(dot)m(dot)holland(at)gmail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jeff Davis 2012-06-22 23:07:52 Re: Feature discussion: Should syntax errors abort a transaction?
Previous Message Benedict Holland 2012-06-22 20:11:10 Re: insert select fails inside of function