diff options
author | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-01-12 13:23:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-12 13:23:47 +0100 |
commit | 648005dee62481acc1784e5c9625e90f0fd6aab4 (patch) | |
tree | 182c149508ac453ffe00148c9690fc7a508ffd17 /django/db/backends/postgresql/introspection.py | |
parent | 32940d390a00a30a6409282d314d617667892841 (diff) | |
download | django-648005dee62481acc1784e5c9625e90f0fd6aab4.tar.gz |
Refs #18468 -- Used obj_description() with a catalog name on PostgreSQL.
obj_description(object oid) without a catalog name is deprecated since
there is no guarantee that OIDs are unique across different system
catalogs.
Thanks Tim Graham for the report.
Diffstat (limited to 'django/db/backends/postgresql/introspection.py')
-rw-r--r-- | django/db/backends/postgresql/introspection.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/db/backends/postgresql/introspection.py b/django/db/backends/postgresql/introspection.py index d649b6fd4f..69bc8712bd 100644 --- a/django/db/backends/postgresql/introspection.py +++ b/django/db/backends/postgresql/introspection.py @@ -64,7 +64,7 @@ class DatabaseIntrospection(BaseDatabaseIntrospection): WHEN c.relkind IN ('m', 'v') THEN 'v' ELSE 't' END, - obj_description(c.oid) + obj_description(c.oid, 'pg_class') FROM pg_catalog.pg_class c LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace WHERE c.relkind IN ('f', 'm', 'p', 'r', 'v') |