From: | Bruce Momjian <bruce(at)momjian(dot)us> |
---|---|
To: | Susanne Ebrecht <miracee(at)miracee(dot)de> |
Cc: | Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>, pgsql-patches(at)postgresql(dot)org, David Fetter <david(at)fetter(dot)org>, "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Subject: | Re: [HACKERS] extension for sql update |
Date: | 2006-09-02 20:55:19 |
Message-ID: | 200609022055.k82KtJF02060@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Susanne Ebrecht wrote:
> >>>>>> Is it too hard to rip it back out once the full row support
> >>>>>> arrives? That seems speculation at best anyway.
> >>>>>>
> >>>>> That's what I was thinking. Glad someone else replied. ;-)
> >>>>>
> >>>> If you're looking for votes, +1. I'll gladly take a subset of the
> >>>> SQL standard UPDATE table SET (...) = (...) over having nothing.
> >>>>
> >>> +1 here, too. :)
> >>>
> >>>
> >> +1
> >>
> >
> > I am working now to get this into 8.2.
> >
> >
> I am glad to read this. But what does it mean to me? Shall I change the
> patch someway?
I have merged your patch into current CVS and applied it; attached.
There was quite a bit of code drift. One drift area was the new
RETURNING clause; that was easy to fix. A more complex case is the
code no longer has values as ResTargets --- it is a simple a_expr list,
so I changed the critical assignment in gram.y from:
res_col->val = (Node *)copyObject(res_val->val);
to:
res_col->val = (Node *)copyObject(res_val);
Hope that is OK. Without that fix, it crashed. I also merged your SGML
syntax and grammer addition into the exiting UPDATE main entry.
--
Bruce Momjian bruce(at)momjian(dot)us
EnterpriseDB http://www.enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
Attachment | Content-Type | Size |
---|---|---|
/bjm/diff | text/x-diff | 6.6 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 2006-09-02 20:57:27 | Re: problem with volatile functions in subselects ? |
Previous Message | Dave Page | 2006-09-02 19:33:41 | Developer's Wiki |
From | Date | Subject | |
---|---|---|---|
Next Message | Joe Conway | 2006-09-02 21:12:07 | Re: [Fwd: dblink patch - Asynchronous queries and parallel |
Previous Message | Bruce Momjian | 2006-09-02 18:18:42 | Re: Patch for - Change FETCH/MOVE to use int8 |