Work with PostgreSQL database WAL log files

Datastream uses the PostgreSQL WAL (Write Ahead Log) transaction log toread PostgreSQL streams. The log is stored in WAL files on the database server.Each record in the WAL log represents a single change to the actual data in oneof the tables in the database.

Set configuration parameters for PostgreSQL WAL files

It is recommended that you apply the following configuration settings to yourPostgreSQL database:

If you plan to create more than 10 streams, or the number of logical replicationslots that is used by other resources in addition to the number of plannedstreams exceeds 10, make sure to modify the following parameters:

Optimize WAL log files

To avoid high latency of your streams and rapid growth in the size of WAL logfiles when replicating data from a PostgreSQL source, consider applying thefollowing precautions:

What's next

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-15 UTC.