Re: Postgres backend introspection and the 'public' schema

2017-07-26 Thread Nicholas FitzRoy-Dale
Thanks for those. From those I deduce that the goal is to implement full schema support incrementally, but not to pretend that they are supported at the moment. I wonder if it's worth adding a note to that effect to the documentation? There are lots of blog posts and queries on sites like Stack

Re: Postgres backend introspection and the 'public' schema

2017-07-25 Thread Tim Graham
Here's are related tickets: https://code.djangoproject.com/ticket/22673 - inspectdb doesn't support database schema on postgresql with name different of "public" https://code.djangoproject.com/ticket/6148 - Add generic support for database schemas On Tuesday, July 25, 2017 at 8:53:40 AM UTC-4, N

Postgres backend introspection and the 'public' schema

2017-07-25 Thread Nicholas FitzRoy-Dale
Hi there, The Postgres introspection backend's get_constraints function will only pull in constraints from the 'public' schema* (https://github.com/django/django/blob/stable/1.11.x/django/db/backends/postgresql/introspection.py#L186). This has the effect that calling get_constraints() for a da