From a445f3fbc989f5735a8f28225245c74b0847c68b Mon Sep 17 00:00:00 2001 From: jiangML <1060319118@qq.com> Date: Mon, 16 Dec 2024 17:49:52 +0800 Subject: [PATCH] Optimize SimpleTableSegmentBinder, add table of pg_catalog (#34075) --- .../segment/from/type/SimpleTableSegmentBinder.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/infra/binder/src/main/java/org/apache/shardingsphere/infra/binder/engine/segment/from/type/SimpleTableSegmentBinder.java b/infra/binder/src/main/java/org/apache/shardingsphere/infra/binder/engine/segment/from/type/SimpleTableSegmentBinder.java index be851ce38965e..a23f43f48d4e4 100644 --- a/infra/binder/src/main/java/org/apache/shardingsphere/infra/binder/engine/segment/from/type/SimpleTableSegmentBinder.java +++ b/infra/binder/src/main/java/org/apache/shardingsphere/infra/binder/engine/segment/from/type/SimpleTableSegmentBinder.java @@ -58,15 +58,21 @@ @NoArgsConstructor(access = AccessLevel.PRIVATE) public final class SimpleTableSegmentBinder { - private static final Collection SYSTEM_CATALOG_TABLES = new CaseInsensitiveSet<>(4, 1F); + private static final Collection SYSTEM_CATALOG_TABLES = new CaseInsensitiveSet<>(10, 1F); private static final String PG_CATALOG = "pg_catalog"; static { + SYSTEM_CATALOG_TABLES.add("pg_class"); SYSTEM_CATALOG_TABLES.add("pg_database"); SYSTEM_CATALOG_TABLES.add("pg_tables"); SYSTEM_CATALOG_TABLES.add("pg_roles"); SYSTEM_CATALOG_TABLES.add("pg_settings"); + SYSTEM_CATALOG_TABLES.add("pg_depend"); + SYSTEM_CATALOG_TABLES.add("pg_attribute"); + SYSTEM_CATALOG_TABLES.add("pg_attrdef"); + SYSTEM_CATALOG_TABLES.add("pg_type"); + SYSTEM_CATALOG_TABLES.add("pg_description"); } /**