Skip to main content
This page provides a complete reference for all configuration parameters used when connecting RisingWave to a PostgreSQL database for Change Data Capture (CDC) via the WITH clause of a CREATE SOURCE or CREATE TABLE ... FROM source statement. For step-by-step instructions on setting up PostgreSQL for CDC and connecting to RisingWave, see the Connect to PostgreSQL CDC guide.

Syntax

Syntax for creating a CDC source.
Syntax for creating a CDC table on top of this CDC Source. Note that a primary key is required and must be consistent with the upstream table. We must also specify the Postgres table name (pg_table_name) which we are selecting from.

Connector parameters

Parameters for CREATE TABLE ... FROM source

These parameters are used only when creating a table from a shared CDC source (CREATE TABLE ... FROM source).

Debezium parameters

You can also specify any valid Debezium PostgreSQL connector configuration property in the WITH clause. Prefix the Debezium parameter name with debezium.. For example, to skip unknown DDL statements, use:

Data format

RisingWave uses the Debezium JSON format for PostgreSQL CDC data. This format does not need to be explicitly specified in the CREATE SOURCE or CREATE TABLE statement when using the postgres-cdc connector. For details on the structure of Debezium JSON, see Data formats and encoding options.

Time travel

Time travel is not supported.

Metadata options