Attempt to use a unique constraint deferrable initially immediate, to account for http://www.postgresql.org/docs/9.3/static/sql-createtable.html#AEN73284