sqlalchemy-bot
sqlalchemy-bot
**Changes by Michael Bayer ([@zzzeek](https://github.com/zzzeek)):** * set **milestone** to "1.4"
**Michael Bayer ([@zzzeek](https://github.com/zzzeek)) wrote:** this can be pushed up if someone wants to work on it
**Robin T ([@robin900](https://github.com/robin900)) wrote:** @zzzeek An obstacle to this feature is that `engine.reflection` only creates generally supported schema objects present in `sql.schema`, using item dictionaries returned by the dialect's `get_XXX_constraints`...
**Michael Bayer ([@zzzeek](https://github.com/zzzeek)) wrote:** @robin900 there's no technical issue to this feature being added, dialects support dialect-specific `Inspector` objects and Postgresql has the most involved one already: http://docs.sqlalchemy.org/en/latest/dialects/postgresql.html?highlight=pginspector#special-reflection-options . To...
**Robin T ([@robin900](https://github.com/robin900)) wrote:** We've already implemented it completely from scratch, using the extension points. I was just exploring how it could most expediently be made part of the alembic...
**Michael Bayer ([@zzzeek](https://github.com/zzzeek)) wrote:** the extension points worked! nice! so yeah, ExcludeConstraint can be added to PGInspector.
**Robin T ([@robin900](https://github.com/robin900)) wrote:** And we'd need to have PGInspector override reflecttable(), although the override could gracefully call superclass method and just add a call to a new method self._reflect_exclude_constraints....
**Michael Bayer ([@zzzeek](https://github.com/zzzeek)) wrote:** The base Inspector.reflecttable() should call into a hook at the end, something like self.reflect_dialect_specific(). That way PGInspector overrides that and doesn't have to wrap the top-level...
**Michael Bayer ([@zzzeek](https://github.com/zzzeek)) wrote:** this can be pushed to whatever milestone once we have contributors
**Robin T ([@robin900](https://github.com/robin900)) wrote:** Well, I suppose I’m willing to sign up as a contributor for this. I’ll see what I can do this week...