From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | "Jonah H(dot) Harris" <jonah(dot)harris(at)gmail(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Mark Mielke <mark(at)mark(dot)mielke(dot)cc>, Postgresql-Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: insert ... delete ... returning ... ? |
Date: | 2008-03-03 21:26:17 |
Message-ID: | 200803032126.m23LQHs14939@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Added to TODO:
* Allow INSERT ... DELETE ... RETURNING, namely allow the DELETE ...
RETURNING to supply values to the INSERT
http://archives.postgresql.org/pgsql-hackers/2008-02/thrd2.php#00979
---------------------------------------------------------------------------
Jonah H. Harris wrote:
> On Sun, Feb 24, 2008 at 5:44 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> > "Jonah H. Harris" <jonah(dot)harris(at)gmail(dot)com> writes:
> > > Not stupid, it doesn't work :) This was a limitation of the original
> > > design based on (IIRC) executor-related issues.
> >
> > There are definitional issues not only implementation ones; in
> > particular, in subquery-like cases it's entirely unclear how many times
> > the DML operation will or should get evaluated.
>
> Yup,that's what it was. I think I remember the trigger-level and
> top-level executor-related stuff. If I'm in that area of the code
> soon, I'll see how much would be involved and if I think I have enough
> time, submit a proposal for it.
>
> --
> Jonah H. Harris, Sr. Software Architect | phone: 732.331.1324
> EnterpriseDB Corporation | fax: 732.331.1301
> 499 Thornall Street, 2nd Floor | jonah(dot)harris(at)enterprisedb(dot)com
> Edison, NJ 08837 | http://www.enterprisedb.com/
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
> http://archives.postgresql.org
--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://postgres.enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
From | Date | Subject | |
---|---|---|---|
Next Message | Josh Berkus | 2008-03-03 21:55:51 | Re: A couple of PG schedule reminders |
Previous Message | Merlin Moncure | 2008-03-03 21:23:30 | libpq type system 0.9a |