tencent cloud

All product documents
Stream Compute Service
PostgreSQL Sinks
Last updated: 2023-11-08 16:20:19
PostgreSQL Sinks
Last updated: 2023-11-08 16:20:19

Overview

A PostgreSQL data sink can write data to the PostgreSQL database.

Notes

Primary key

All data generated by an ETL data source table is UPSERT data, so it's important that you correctly define the primary key for the PostgreSQL database table.
The primary key defined for the data sink table must be the same as that defined for the physical table. Otherwise, an error may occur after the task is started.

WITH parameters

PostgreSQL data sinks are developed based on JDBC and support the following sink-related configurations:
Parameter
‍Required
Default Value
Description
sink.buffer-flush.max-rows
No
100
The maximum size of buffered data records before flush. If this is set to 0, no data will be buffered.
sink.buffer-flush.interval
No
1s
‍The maximum interval (ms) between ‍flushes. If sink.buffer-flush.max-rows is 0, and this parameter is not, buffered actions will be processed asynchronously.
sink.max-retries
No
3
The maximum number of retries allowed when a write operation fails.

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon