- changed component to documentation
- changed milestone to 0.6.0
document how to specify backend-specific DDL sequences
Issue #1472
resolved
Postgre doesn't support deferrable unique constraints, though when adding a multicolumn UniqueConstraint at table level with deferrable=True, SQLA still emits the DEFERRABLE keyword in the DDL, I would have expected SQLA to suppress this?
Quoting from the Postgre docs (8.3 and 8.4): "This controls whether the constraint can be deferred. ... Only foreign key constraints currently accept this clause."
http://www.postgresql.org/docs/8.3/interactive/sql-createtable.html http://www.postgresql.org/docs/8.4/interactive/sql-createtable.html
Comments (4)
-
repo owner -
repo owner - changed title to document how to specify backend-specific DDL sequences
-
repo owner - changed status to resolved
-
repo owner - removed milestone
Removing milestone: 0.6.0 (automated comment)
- Log in to comment
the only question is, raise or ignore ? if the answer is "raise", then nothing should be done here - the DB already raises. Silently ignoring something as major as "deferrable" seems like a mistake.
0.6 supports the attachment of DDL events to specific backends so that would be the appropriate user technique.