Re: [HACKERS] extension for sql update

From: Jim Nasby <jnasby(at)pervasive(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Susanne Ebrecht <miracee(at)miracee(dot)de>, pgsql-hackers(at)postgresql(dot)org, pgsql-patches(at)postgresql(dot)org
Subject: Re: [HACKERS] extension for sql update
Date: 2006-07-27 15:00:04
Message-ID: 9EA3B62F-D3BC-44B4-885A-ACCD9EFB4D81@pervasive.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

On Jul 27, 2006, at 7:30 AM, Tom Lane wrote:
> Susanne Ebrecht <miracee(at)miracee(dot)de> writes:
>> ... We could provide the mixed update syntax and leave the
>> typed row value expression for the next release. Do you agree?
>
> I don't really see the point --- the patch won't provide any new
> functionality in anything like its current form, because you can
> always just write the separate expressions in the simple one to
> one way. If we do offer the row-on-the-left syntax then people
> will try to put sub-selects on the right, and won't get anything
> beyond an unhelpful "syntax error" message. So my vote would be
> to leave it alone until we have a more complete implementation.

While the patch doesn't provide any new functionality, I would still
welcome it simply because I find it a lot easier and cleaner to group
fields together when updating multiple fields at once.

Even if we would have to rip this patch back out in order to fully
support the spec, we've got a (mostly) working patch right now, and
it sounds like it would take minimal effort to finish it.

In any case, it sounds like there should be a TODO item out of this.
--
Jim C. Nasby, Sr. Engineering Consultant jnasby(at)pervasive(dot)com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Joshua Reich 2006-07-27 15:04:22 Re: [HACKERS] [COMMITTERS] pgsql: /contrib/cube improvements:
Previous Message Andrew Dunstan 2006-07-27 14:50:47 Re: [HACKERS] [COMMITTERS] pgsql: /contrib/cube improvements:

Browse pgsql-patches by date

  From Date Subject
Next Message Joshua Reich 2006-07-27 15:04:22 Re: [HACKERS] [COMMITTERS] pgsql: /contrib/cube improvements:
Previous Message Andrew Dunstan 2006-07-27 14:50:47 Re: [HACKERS] [COMMITTERS] pgsql: /contrib/cube improvements: