From: Cliff Wells <cliff@develix.com>
To: pgsql-sql <pgsql-sql@postgresql.org>
Subject: Re: INSERT INTO...RETURNING vs SELECT
Date: Mon, 05 Apr 2010 08:40:24 -0700
Message-ID: <1270482024.4749.161.camel@portable-evil> (raw)
In-Reply-To: <20100405071026.GA5610@tux>
References: <1270442932.4749.140.camel@portable-evil>
<20100405071026.GA5610@tux>
On Mon, 2010-04-05 at 09:10 +0200, Andreas Kretschmer wrote:
> Cliff Wells <cliff@develix.com> wrote:
>
> > As far as I can see, INSERT INTO...RETURNING is semantically equivalent
> > to SELECT...FROM with a side-effect, so it seems this construct should
> > work. Can someone shed some light?
>
> Well, at the moment you can't reuse the RETURNING-values, you have to
> wait for 9.1, writeable CTE.
Thanks, I just wanted to make sure I wasn't misunderstanding something.
Regards,
Cliff
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: cliff@develix.com
Subject: Re: INSERT INTO...RETURNING vs SELECT
In-Reply-To: <1270482024.4749.161.camel@portable-evil>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox