[ https://issues.apache.org/jira/browse/FLINK-37479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17946341#comment-17946341 ]
Hongshun Wang commented on FLINK-37479: --------------------------------------- > I recall that if we use option publish_via_partition_root, it will return > event as parent table and we shouldn't concern about the leaf table at all? Maybe you can try it by set debezium.publication.autocreate.mode[1] as none, and do publish with publish_via_partition_root by yourself to test? And then use this slot in flink cdc? [1] [{{publication.autocreate.mode}}|https://debezium.io/documentation/reference/3.1/connectors/postgresql.html#postgresql-publication-autocreate-mode] > postgres cdc connector support discover PARTITIONED TABLE > --------------------------------------------------------- > > Key: FLINK-37479 > URL: https://issues.apache.org/jira/browse/FLINK-37479 > Project: Flink > Issue Type: Improvement > Components: Flink CDC > Reporter: Vinh Pham > Priority: Minor > > At the moment, Postgresql connector doesn't support discover PARTITIONED > TABLE, making the connector not possible to take snapshot on partitioned > table. > [https://github.com/apache/flink-cdc/blob/master/flink-cdc-connect/flink-cdc-source-connectors/flink-connector-postgres-cdc/src/main/java/org/apache/flink/cdc/connectors/postgres/source/utils/TableDiscoveryUtils.java#L41] > > This is inconsistent with the other implementation in PostgresConnection > class > [https://github.com/apache/flink-cdc/blob/master/flink-cdc-connect/flink-cdc-source-connectors/flink-connector-postgres-cdc/src/main/java/io/debezium/connector/postgresql/connection/PostgresConnection.java#L859] -- This message was sent by Atlassian Jira (v8.20.10#820010)