Re: INSERT ... ON CONFLICT {UPDATE | IGNORE}
Kevin Grittner <kgrittn@ymail.com>
From: Kevin Grittner <kgrittn@ymail.com>
To: Heikki Linnakangas <hlinnakangas@vmware.com>,
Peter Geoghegan <pg@heroku.com>
Cc: Jeff Janes <jeff.janes@gmail.com>, Robert Haas <robertmhaas@gmail.com>, Josh Berkus <josh@agliodbs.com>, Craig Ringer <craig@2ndquadrant.com>, Anssi Kääriäinen <anssi.kaariainen@thl.fi>, Simon Riggs <simon@2ndquadrant.com>, Bruce Momjian <bruce@momjian.us>, Andres Freund <andres@2ndquadrant.com>, Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2014-12-18T16:04:48Z
Lists: pgsql-hackers
Heikki Linnakangas <hlinnakangas@vmware.com> wrote: > On 12/18/2014 05:46 PM, Kevin Grittner wrote: >> I don't think either point was ever really settled beyond Robert >> and I preferring ON DUPLICATE versus Peter preferring ON CONFLICT. > > I also prefer ON CONFLICT, because that makes more sense when you > consider exclusion constraints, which I'm still hoping that this would > support. If not immediately, at least in the future. If you think this can be made to work without a UNIQUE btree index, that is a persuasive point in favor of ON CONFLICT. I had missed (or forgotten) that we thought this could work without a UNIQUE btree index as the basis of detecting when to resort to an UPDATE. -- Kevin Grittner EDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
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