diff options
author | Markus Holtermann <info@markusholtermann.eu> | 2018-05-26 16:29:02 +0200 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2018-05-26 16:29:02 +0200 |
commit | e01fa015c0fca32bb740b575c8fbfd388d8f4957 (patch) | |
tree | df57ddb7d7f3123069eb6006c42ceaf37e2a2c9a /django/db/backends/postgresql/introspection.py | |
parent | 257fb0a7d08ddf92306789ce0a39d703ca58a2b8 (diff) | |
download | django-e01fa015c0fca32bb740b575c8fbfd388d8f4957.tar.gz |
Refs #27098 -- Removed unused introspection queries.
Unused since 578711c31052625cc87319cf1c46662c14d75ce9.
Thanks Ian Foote for finding this.
Diffstat (limited to 'django/db/backends/postgresql/introspection.py')
-rw-r--r-- | django/db/backends/postgresql/introspection.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/django/db/backends/postgresql/introspection.py b/django/db/backends/postgresql/introspection.py index 859282057a..a24e37b0b8 100644 --- a/django/db/backends/postgresql/introspection.py +++ b/django/db/backends/postgresql/introspection.py @@ -29,16 +29,6 @@ class DatabaseIntrospection(BaseDatabaseIntrospection): ignored_tables = [] - _get_indexes_query = """ - SELECT attr.attname, idx.indkey, idx.indisunique, idx.indisprimary - FROM pg_catalog.pg_class c, pg_catalog.pg_class c2, - pg_catalog.pg_index idx, pg_catalog.pg_attribute attr - WHERE c.oid = idx.indrelid - AND idx.indexrelid = c2.oid - AND attr.attrelid = c.oid - AND attr.attnum = idx.indkey[0] - AND c.relname = %s""" - def get_field_type(self, data_type, description): field_type = super().get_field_type(data_type, description) if description.default and 'nextval' in description.default: |