title: How to use the Kafka Connect JDBC to source PostgreSQL with multiple schemas that contain tables with the same name?
body: <p>I need to source data from a PostgreSQL database with ~2000 schemas. All schemas contain the same tables (it is a multi-tenant application).</p>
  
  <p>The connector is configured as following:</p>
  
  <pre><code>{
    "name": "postgres-source",
    "connector.class": "io.confluent.connect.jdbc.JdbcSourceConnector",
    "timestamp.column.name": "updated",
    "incrementing.column.name": "id",
    "connection.password": "********",
    "tasks.max": "1",
    "mode": "timestamp+incrementing",
    "topic.prefix": "postgres-source-",
    "connection.user": "*********",
    "poll.interval.ms": "3600000",
    "numeric.mapping": "best_fit",
    "connection.url": "jdbc:postgresql://*******:5432/*******",
    "table.whitelist": "table1",
    "value.converter": "org.apache.kafka.connect.json.JsonConverter",
    "value.converter.schemas.enable": "false",
    "key.converter": "org.apache.kafka.connect.json.JsonConverter",
    "key.converter.schemas.enable":"false"
  }
  </code></pre>
  
  <p>With this configuration, I get this error:</p>
  
  <p>"The connector uses the unqualified table name as the topic name and has detected duplicate unqualified table names. This could lead to mixed data types in the topic and downstream processing errors. To prevent such processing errors, the JDBC Source connector fails to start when it detects duplicate table name configurations"</p>
  
  <p>Apparently the connector does not want to publish data from multiple tables with the same name to a single topic. </p>
  
  <p>This does not matter to me, it could go to a single topic or multiple topics (one for each schema).</p>
  
  <p>As an additional info, if I add:</p>
  
  <pre><code>"schema.pattern": "schema1" 
  </code></pre>
  
  <p>to the config, the connector works and the data from the specified schema and table is copied.</p>
  
  <p>Is there a way to copy multiple schemas that contain tables with the same name?</p>
  
  <p>Thank you</p>