如果wal_keep_segments为0(默认值),系统不会备用服务器流复制保留任何额外的段,所以备用服务器可用的旧WAL段的数量取决于前一个检查点的位置和WAL归档状态。 注意:postgresql 13.0中,将wal_keep_segments重命名为wal_keep_size,让用户指定WAL大小,而不是WAL文件个数。在PG内核不断演进的过程中,PostgreSQL开发者在...
PostgreSQL参数学习:wal_keep_segments http://www.postgresql.org/docs/9.3/static/runtime-config-replication.html 参考官方文档: wal_keep_segments (integer) Specifies the minimum number of past log file segments kept in the pg_xlog directory, in case a standby server needs to fetch them for stream...
Based on how to Operator manages PostgreSQL clusters, I would recommend removing that parameter. However, if you wish to keep using it, this parameter is renamed to wal_keep_size in PostgreSQL 13. You can read more about it in the PostgreSQL 13 release notes. 👍 1 jkatz closed this a...
max_slot_wal_keep_segments, in the discussion. But we have been moving away from measuring in segments, for example, checkpoint_segments was replaced by max_wal_size. So we concluded to rename wal_keep_segments to wal_keep_size. Back-patch to v13 where max_slot_wal_keep_size was ad...