From 61eb94a23c043930034d66a18ea1189343f0ee8a Mon Sep 17 00:00:00 2001 From: Akshay Joshi Date: Thu, 29 Mar 2018 15:09:29 +0200 Subject: [PATCH] Fix index node display on PG 10. Fixes #3180 --- docs/en_US/release_notes_3_0.rst | 1 + .../servers/databases/schemas/tables/indexes/__init__.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/en_US/release_notes_3_0.rst b/docs/en_US/release_notes_3_0.rst index af07769ce..cc7559567 100644 --- a/docs/en_US/release_notes_3_0.rst +++ b/docs/en_US/release_notes_3_0.rst @@ -105,6 +105,7 @@ Bug fixes | `Bug #3157 `_ - Fix unicode handling in the external process tools and show the complete command in the process viewer | `Bug #3171 `_ - Runtime issue causing inability to scroll in File Selector with trackpad on OSX | `Bug #3176 `_ - Disable function statistics on Greenplum +| `Bug #3180 `_ - Ensure Indexes are displayed on PG 10 tables | `Bug #3190 `_ - Skip tests where appropriate on GPDB | `Bug #3196 `_ - Ensure the file manager properly escapes file & directory names | `Bug #3197 `_ - Appropriately set the cookie path diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/indexes/__init__.py b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/indexes/__init__.py index edda4a451..96fa1f3d9 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/indexes/__init__.py +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/indexes/__init__.py @@ -77,7 +77,7 @@ class IndexesModule(CollectionNodeModule): # In case of partitioned table return false. if 'tid' in kwargs and manager.version >= 100000: - return backend_supported(self, manager, **kwargs) + return not backend_supported(self, manager, **kwargs) if 'vid' not in kwargs: return True