Re: cannot use result of (insert..returning)

From: "Heikki Linnakangas" <heikki(at)enterprisedb(dot)com>
To: "dvs" <dvs(at)fon(dot)kamchatka(dot)ru>
Cc: <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: cannot use result of (insert..returning)
Date: 2008-06-04 12:22:58
Message-ID: 48468922.9030108@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

dvs wrote:
> Hello,
>
> I need to use query like:
> select (insert into test (a) values (x) returning b),c from anytable
> where condition
> but it say
> ERROR: syntax error at or near "into"
>
> Is this a bug?

No, it's a known limitation.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Decibel! 2008-06-04 12:35:04 Re: intercepting WAL writes
Previous Message Heikki Linnakangas 2008-06-04 11:19:42 Re: Core team statement on replication in PostgreSQL