-
- Downloads
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
Showing
- doc/src/sgml/protocol.sgml 3 additions, 10 deletionsdoc/src/sgml/protocol.sgml
- doc/src/sgml/ref/insert.sgml 7 additions, 14 deletionsdoc/src/sgml/ref/insert.sgml
- src/backend/nodes/copyfuncs.c 0 additions, 1 deletionsrc/backend/nodes/copyfuncs.c
- src/backend/nodes/outfuncs.c 0 additions, 1 deletionsrc/backend/nodes/outfuncs.c
- src/backend/optimizer/plan/planner.c 0 additions, 2 deletionssrc/backend/optimizer/plan/planner.c
- src/backend/tcop/pquery.c 3 additions, 14 deletionssrc/backend/tcop/pquery.c
- src/bin/psql/common.c 1 addition, 4 deletionssrc/bin/psql/common.c
- src/include/catalog/catversion.h 1 addition, 1 deletionsrc/include/catalog/catversion.h
- src/include/nodes/plannodes.h 0 additions, 2 deletionssrc/include/nodes/plannodes.h
Loading
Please register or sign in to comment