Re: INSERT ... ON CONFLICT {UPDATE | IGNORE}
Peter Geoghegan <pg@heroku.com>
From: Peter Geoghegan <pg@heroku.com>
To: Andres Freund <andres@2ndquadrant.com>
Cc: Kevin Grittner <kgrittn@ymail.com>, Simon Riggs <simon@2ndquadrant.com>,
Heikki Linnakangas <hlinnakangas@vmware.com>,
Pg Hackers <pgsql-hackers@postgresql.org>,
Craig Ringer <craig@2ndquadrant.com>
Date: 2014-09-29T22:05:46Z
Lists: pgsql-hackers
On Mon, Sep 29, 2014 at 3:02 PM, Andres Freund <andres@2ndquadrant.com> wrote: > That'll make it really hard to actually implement real MERGE. > > Because suddenly there's no way for the user to know whether he's > written a ON condition that can implement UPSERT like properties > (i.e. the *precise* column list of an index) or not. Exactly. The difficulty isn't doing what Kevin says so much as doing so and then at a later date taking that thing and making it into a fully featured MERGE. We'll be painted into a corner. That's bad, because as I've said I think we need MERGE too (just far less urgently). -- Peter Geoghegan
Commits
-
Change the way we mark tuples as frozen.
- 37484ad2aace 9.4.0 cited
-
Add documentation for data-modifying statements in WITH clauses.
- 0ef0b3020402 9.1.0 cited