Remove the new UPSERT command tag and use INSERT instead.

Andres Freund <andres@anarazel.de>

Commit: 631d7490074cdaef8026db57a5f2772b8730f600
Author: Andres Freund <andres@anarazel.de>
Date: 2015-05-22T22:58:45Z
Releases: 9.5.0
Remove the new UPSERT command tag and use INSERT instead.

Previously, INSERT with ON CONFLICT DO UPDATE specified used a new
command tag -- UPSERT.  It was introduced out of concern that INSERT as
a command tag would be a misrepresentation for ON CONFLICT DO UPDATE, as
some affected rows may actually have been updated.

Alvaro Herrera noticed that the implementation of that new command tag
was incomplete; in subsequent discussion we concluded that having it
doesn't provide benefits that are in line with the compatibility breaks
it requires.

Catversion bump due to the removal of PlannedStmt->isUpsert.

Author: Peter Geoghegan
Discussion: 20150520215816.GI5885@postgresql.org

Files