[Sqlalchemy-tickets] Issue #3529: Support Postgres 9.5 "ON CONFLICT" (zzzeek/sqlalchemy)
Brought to you by:
zzzeek
|
From: thiefmaster <iss...@bi...> - 2015-09-11 09:49:33
|
New issue 3529: Support Postgres 9.5 "ON CONFLICT" https://bitbucket.org/zzzeek/sqlalchemy/issues/3529/support-postgres-95-on-conflict thiefmaster: Probably a bit early since 9.5 isn't out yet, but once it's out this would be pretty useful. https://wiki.postgresql.org/wiki/What's_new_in_PostgreSQL_9.5#INSERT_..._ON_CONFLICT_DO_NOTHING.2FUPDATE_.28.22UPSERT.22.29 This could be a table arg, e.g. `postgres_onconflict='nothing|update'` (or maybe even in a less db-specific way if other databases also support this feature). When set it would automatically add it to INSERTs involving that table. |