Fixed an issue where the parent partition table was not displayed during autocomplete. Fixes #7105

This commit is contained in:
Akshay Joshi 2022-03-07 14:06:40 +05:30
parent 9d6098ddf2
commit 24c0816042
3 changed files with 3 additions and 2 deletions

View File

@ -23,6 +23,7 @@ Bug fixes
| `Issue #6956 <https://redmine.postgresql.org/issues/6956>`_ - Fixed a schema diff issue in which user mappings were not compared correctly.
| `Issue #6991 <https://redmine.postgresql.org/issues/6991>`_ - Fixed an issue where pgadmin cannot connect to LDAP when STARTTLS is required before bind.
| `Issue #6999 <https://redmine.postgresql.org/issues/6999>`_ - Fixed an issue where a warning is flashed every time for an email address when authentication sources are internal and ldap.
| `Issue #7105 <https://redmine.postgresql.org/issues/7105>`_ - Fixed an issue where the parent partition table was not displayed during autocomplete.
| `Issue #7124 <https://redmine.postgresql.org/issues/7124>`_ - Fixed the schema diff issue where tables have different column positions and a column has a default value.
| `Issue #7152 <https://redmine.postgresql.org/issues/7152>`_ - Added comments column for the functions collection node.
| `Issue #7172 <https://redmine.postgresql.org/issues/7172>`_ - Allow users to scroll and enter input when there is a validation error.

View File

@ -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

View File

@ -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' %}