AutoMQ to PostgreSQL
BladePipe supports data replication from AutoMQ to PostgreSQL. View supported migration, sync, verification, and connector capabilities.
| Function | Description |
|---|---|
Incremental Data Sync | Allow subscribing to messages from the source Topic and transforming them into DML operations, namely, INSERT, UPDATE, DELETE. |
Subscription Modification | Add, delete, or modify the subscribed topics. For more information, see Modify Subscription. |
Position Resetting | Reset positions by timestamp to consume the data in a past period again. |
Advanced Functions
| Function | Description |
|---|---|
Message Format | The following message formats are supported. See Message Format.
|
Handling of Zero Value for Time | Allow setting zero value for time to different data types to prevent errors when writing to the Target. |
Limits
| Limit | Description |
|---|---|
Creating Tables in the Target in Advance | Only support automatic Topic creation for messages. |
Raw Message Format | Only support raw message replication from AutoMQ to AutoMQ, and Raw Message Format needs to be selected at both the Source and the Target. |
Primary Key Conflict Handling | PostgreSQL <= 9.4 or Greenplum <= 6 does not support conflict skipping or replacement. Performance may be affected when there are a large number of primary key conflicts. |
Prerequisites
| Prerequisite | Description |
|---|---|
Port Preparation | Allow the migration and sync node (Worker) to connect to the AutoMQ nodes. |
Parameters
| Parameter | Description |
|---|---|
schemaFormat | MQ Message format. For more information, see Message Format. |
consumerGroupId | AutoMQ consumer group ID. |
consumeParallel | Degree of consuming AutoMQ topics in parallel. |
sessionTimeoutMs | AutoMQ session timeout in milliseconds. |
maxPollRecords | Maximum number of messages fetched in one poll from AutoMQ. |
Tips: To modify the general parameters, see General Parameters and Functions.
Prerequisites
| Prerequisite | Description |
|---|---|
Permissions for Account | Required permissions include SELECT, INSERT, DELETE, UPDATE, and common DDL permissions. |
Port Preparation | Allow the migration and sync node (sidecar) to connect to PostgreSQL / Greenplum / AnalyticDB for PostgreSQL / PolarDB for PostgreSQL standard interactive interface (e.g., 5432). |
Parameters
| Parameter | Description |
|---|---|
keyConflictStrategy | Strategy for handling primary key conflicts during write in Incremental DataTask:
|
dstWholeReplace | Convert INSERT and UPDATE operations into full row replacement in the Target. |
enableTimeZoneProcess | Enable time zone conversion to datetime fields. |
timezone | Target time zone, e.g., +08:00, Asia/Shanghai, America/New_York. |
defaultZeroDate | Default value for replacing '0000-00-00 00:00:00' / '0000-00-00' values. Optional values include:
|
caseSensitive | Case sensitivity strategy for SQL statements, including:
|
writeStrategy | Strategy of writing data to the Target, including:
|
defaultGisSRID | Set the SRID for GIS data types. |
Tips: To modify the general parameters, see General Parameters and Functions.