Re: 8.2 features?

From: Joe Conway <mail(at)joeconway(dot)com>
To: Andrew Dunstan <andrew(at)dunslane(dot)net>
Cc: Bernd Helmle <mailings(at)oopsware(dot)de>, Peter Eisentraut <peter_e(at)gmx(dot)net>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Susanne Ebrecht <susanne(dot)ebrecht(at)credativ(dot)de>
Subject: Re: 8.2 features?
Date: 2006-07-17 21:42:10
Message-ID: 44BC0432.3040509@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs pgsql-hackers pgsql-patches

Andrew Dunstan wrote:
> Bernd Helmle wrote:
>>
>> --On Freitag, Juli 14, 2006 01:23:11 +0200 Peter Eisentraut
>> <peter_e(at)gmx(dot)net> wrote:
>>
>>>> . multiple values clauses for INSERT
>>>
>>> Susanne Ebrecht <susanne(dot)ebrecht(at)credativ(dot)de> was last heard to work on
>>> it. Updates, Susanne?
>>
>> I've talked to Susanne today and she's just back from hospital and not
>> available online until next week.
>> She was working on the SET (col1, col2) = (val1, val2) syntax for
>> UPDATE commands.
>> Don't know what the status is on this, though.
>
> Not the same thing, surely. So maybe we should gratefully accept Joe
> Conway's offer to work on it.

I've played with this a bit now, and the grammar changes seem pretty
straightforward, but the other half is kind of ugly. I can't see a good
way to propagate multiple targetlists that isn't a big hack.

The best way might be to fabricate a selectStmt equiv to
"SELECT <targetlist> UNION ALL SELECT <targetlist>...",
but that still feels like a hack.

Have there been any past discussions on how this might be implemented
(FWIW I couldn't find any in the archives)? Any better ideas for an
approach?

Thanks,

Joe

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message Joe Conway 2006-07-18 04:39:59 Re: [HACKERS] 8.2 features?
Previous Message Susanne Ebrecht 2006-07-17 10:27:08 Re: 8.2 features?

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 2006-07-17 21:44:55 Re: plpython sets
Previous Message Tom Lane 2006-07-17 21:27:36 Re: Possible explanation for Win32 stats regression test

Browse pgsql-patches by date

  From Date Subject
Next Message Joshua Reich 2006-07-17 21:55:21 Proposed patch for contrib/cube
Previous Message Tom Lane 2006-07-17 21:27:36 Re: Possible explanation for Win32 stats regression test