Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update postgres-cdc.md #1142

Merged
merged 1 commit into from
Aug 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion docs/content/connectors/postgres-cdc.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,30 @@ Connector Options
For example: <code>'debezium.snapshot.mode' = 'never'</code>.
See more about the <a href="https://debezium.io/documentation/reference/1.5/connectors/postgresql.html#postgresql-connector-properties">Debezium's Postgres Connector properties</a></td>
</tr>
<tr>
<td>debezium.snapshot.select.statement.overrides</td>
<td>optional</td>
<td style="word-wrap: break-word;">(none)</td>
<td>String</td>
<td>If you encounter a situation where there is a large amount of data in the table and you don't need all the historical data. You can try to specify the underlying configuration in debezium to select the data range you want to snapshot. This parameter only affects snapshots and does not affect subsequent data reading consumption.
<br/> Note: PostgreSQL must use schema name and table name.
<br/> For example: <code>'debezium.snapshot.select.statement.overrides' = 'schema.table'</code>.
<br/> After specifying the above attributes, you must also add the following attributes:
<code> debezium.snapshot.select.statement.overrides.[schema].[table] </code>
</td>
</tr>
<tr>
<td>debezium.snapshot.select.statement.overrides.[schema].[table]</td>
<td>optional</td>
<td style="word-wrap: break-word;">(none)</td>
<td>String</td>
<td>You can specify SQL statements to limit the data range of snapshot.
<br/> Note1: Schema and table need to be specified in the SQL statement, and the SQL should conform to the syntax of the data source.Currently.
<br/> For example: <code>'debezium.snapshot.select.statement.overrides.schema.table' = 'select * from schema.table where 1 != 1'</code>.
<br/> Note2: The Flink SQL client submission task does not support functions with single quotation marks in the content.
<br/> For example: <code>'debezium.snapshot.select.statement.overrides.schema.table' = 'select * from schema.table where to_char(rq, 'yyyy-MM-dd')'</code>.
</td>
</tr>
</tbody>
</table>
</div>
Expand Down Expand Up @@ -374,4 +398,4 @@ Data Type Mapping
FAQ
--------
* [FAQ(English)](/~https://github.com/ververica/flink-cdc-connectors/wiki/FAQ)
* [FAQ(中文)](/~https://github.com/ververica/flink-cdc-connectors/wiki/FAQ(ZH))
* [FAQ(中文)](/~https://github.com/ververica/flink-cdc-connectors/wiki/FAQ(ZH))