Re: [HACKERS] MERGE SQL Statement for PG11
От
Peter Geoghegan
Тема
Re: [HACKERS] MERGE SQL Statement for PG11
Дата
Msg-id
20171102191636.GA27644@marmot
Ответ на
Re: [HACKERS] MERGE SQL Statement for PG11 (Simon Riggs)
Список
Дерево обсуждения
[HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Bruce Momjian <bruce@momjian.us>
Re: [HACKERS] MERGE SQL Statement for PG11 Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Bruce Momjian <bruce@momjian.us>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Chapman Flack <chap@anastigmatix.net>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Pavel Stehule <pavel.stehule@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Andreas Seltenreich <seltenreich@gmx.de>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Andreas Seltenreich <seltenreich@gmx.de>
Re: [HACKERS] MERGE SQL Statement for PG11 Pavan Deolasee <pavan.deolasee@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Andreas Seltenreich <seltenreich@gmx.de>
Re: [HACKERS] MERGE SQL Statement for PG11 Pavan Deolasee <pavan.deolasee@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Andreas Seltenreich <seltenreich@gmx.de>
Re: MERGE SQL Statement for PG11 André Brière <brierand@outlook.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Amit Kapila <amit.kapila16@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Amit Kapila <amit.kapila16@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Stephen Frost <sfrost@snowman.net>
Re: [HACKERS] MERGE SQL Statement for PG11 Pavan Deolasee <pavan.deolasee@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Stephen Frost <sfrost@snowman.net>
Re: [HACKERS] MERGE SQL Statement for PG11 Pavan Deolasee <pavan.deolasee@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Pavan Deolasee <pavan.deolasee@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Pavan Deolasee <pavan.deolasee@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Pavan Deolasee <pavan.deolasee@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Pavan Deolasee <pavan.deolasee@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Pavan Deolasee <pavan.deolasee@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Pavan Deolasee <pavan.deolasee@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Pavan Deolasee <pavan.deolasee@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Pavan Deolasee <pavan.deolasee@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] MERGE SQL Statement for PG11 Stephen Frost <sfrost@snowman.net>
Re: [HACKERS] MERGE SQL Statement for PG11 Pavan Deolasee <pavan.deolasee@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Pavan Deolasee <pavan.deolasee@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Pavan Deolasee <pavan.deolasee@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Pavan Deolasee <pavan.deolasee@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Pavan Deolasee <pavan.deolasee@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Pavan Deolasee <pavan.deolasee@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Pavan Deolasee <pavan.deolasee@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Pavan Deolasee <pavan.deolasee@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] MERGE SQL Statement for PG11 Pavan Deolasee <pavan.deolasee@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] MERGE SQL Statement for PG11 Pavan Deolasee <pavan.deolasee@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Pavan Deolasee <pavan.deolasee@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Pavan Deolasee <pavan.deolasee@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Pavan Deolasee <pavan.deolasee@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Pavan Deolasee <pavan.deolasee@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Pavan Deolasee <pavan.deolasee@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
[HACKERS] Mapping MERGE onto CTEs (Re: MERGE SQL Statement for PG11) Nico Williams <nico@cryptonector.com>
Re: [HACKERS] Mapping MERGE onto CTEs (Re: MERGE SQL Statement forPG11) Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [HACKERS] Mapping MERGE onto CTEs (Re: MERGE SQL Statement for PG11) Craig Ringer <craig@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 srielau <serge@rielau.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Nico Williams <nico@cryptonector.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Serge Rielau <serge@rielau.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Michael Paquier <michael.paquier@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Stephen Frost <sfrost@snowman.net>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Stephen Frost <sfrost@snowman.net>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Thomas Kellerer <spam_eater@gmx.net>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Stephen Frost <sfrost@snowman.net>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Geoff Winkless <pgsqladmin@geoff.dj>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Nico Williams <nico@cryptonector.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Geoff Winkless <pgsqladmin@geoff.dj>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Craig Ringer <craig@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Robert Haas <robertmhaas@gmail.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Nico Williams <nico@cryptonector.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Nico Williams <nico@cryptonector.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Nico Williams <nico@cryptonector.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Nico Williams <nico@cryptonector.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Nico Williams <nico@cryptonector.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Nico Williams <nico@cryptonector.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Nico Williams <nico@cryptonector.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Nico Williams <nico@cryptonector.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Simon Riggs <simon@2ndquadrant.com>
Re: [HACKERS] MERGE SQL Statement for PG11 Peter Geoghegan <pg@bowt.ie>
Re: [HACKERS] MERGE SQL Statement for PG11 Szymon Lipiński <mabewlun@gmail.com>
Simon Riggs wrote: >So if I understand you correctly, in your view MERGE should just fail >with an ERROR if it runs concurrently with other DML? That's certainly my opinion on the matter. It seems like that might be the consensus, too. Obviously there are things that you as a user can do about this on your own, like opt to use a higher isolation level, or manually LOCK TABLE. For some use cases, including bulk loading for OLAP, users might just know that there isn't going to be concurrent activity because it's not an OLTP system. If this still seems odd to you, then consider that exactly the same situation exists with UPDATE. A user could want their UPDATE to affect a row where no row version is actually visible to their MVCC snapshot, because they have an idea about reliably updating the latest row. UPDATE doesn't work like that, of course. Is this unacceptable because the user expects that it should work that way? Bear in mind that ON CONFLICT DO UPDATE *can* actually update a row when there is no version of it visible to the snapshot. It can also update a row where there is a concurrent DELETE + INSERT, and the tuples with the relevant unique index values end up not even being part of the same update chain in each case (MVCC-snapshot-visible vs. latest). IOW, you may end up updating a completely different logical row to the row with the conflicting value that is visible to your MVCC snapshot! >i.e. if a race condition between the query and an INSERT runs >concurrently with another INSERT > >We have no interest in making that work? Without meaning to sound glib: we already did make it work for a special, restricted case that is important enough to justify introducing a couple of kludges -- ON CONFLICT DO UPDATE/upsert. I do agree that what I propose for MERGE will probably cause confusion; just look into Oracle's MERGE implementation for examples of this. We ought to go out of our way to make it clear that MERGE doesn't provide these guarantees. -- Peter Geoghegan -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата: