mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue where the parent partition table was not displayed during autocomplete. Fixes #7105
This commit is contained in:
@@ -15,7 +15,7 @@ FROM pg_catalog.pg_attribute att
|
||||
ON def.adrelid = att.attrelid
|
||||
AND def.adnum = att.attnum
|
||||
WHERE nsp.nspname IN ({{schema_names}})
|
||||
AND cls.relkind = ANY(array['r'])
|
||||
AND cls.relkind = ANY(array['r', 'p'])
|
||||
AND NOT att.attisdropped
|
||||
AND att.attnum > 0
|
||||
ORDER BY 1, 2, att.attnum
|
||||
|
||||
@@ -4,7 +4,7 @@ SELECT n.nspname schema_name,
|
||||
c.relname object_name
|
||||
FROM pg_catalog.pg_class c
|
||||
LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
|
||||
WHERE c.relkind = ANY(array['r']) and n.nspname IN ({{schema_names}})
|
||||
WHERE c.relkind = ANY(array['r', 'p']) and n.nspname IN ({{schema_names}})
|
||||
ORDER BY 1,2
|
||||
{% endif %}
|
||||
{% if object_name == 'views' %}
|
||||
|
||||
Reference in New Issue
Block a user