hql0312 commented on code in PR #3808: URL: https://github.com/apache/flink-cdc/pull/3808#discussion_r1896213233
########## flink-cdc-connect/flink-cdc-source-connectors/flink-connector-postgres-cdc/src/main/java/org/apache/flink/cdc/connectors/postgres/source/utils/CustomPostgresSchema.java: ########## @@ -112,7 +112,13 @@ private List<TableChange> readTableSchema(List<TableId> tableIds) throws SQLExce tables, dbzConfig.databaseName(), null, - dbzConfig.getTableFilters().dataCollectionFilter(), + // only check context tableIds + (tb) -> Review Comment: if we do not change this code, it will load all column infos of the table which match dbzConfig.getTableFilters().dataCollectionFilter(), In my scene, test\.t_(.*) will match 700+ tables,each chunk will load a table schema, but will load 700+ table info, it will load almost 700x700 times. in actually ,it should load current context tableId enough -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org