2

I'm very new in postgresql. I want to ask about log shipping replication process. I know that the timeout parameter is optional in log shipping process. It specifies that we don't want that postgreSQL to wait until the WAL files contain 16 MB to be sent as it does by default. My question is, it is better has timeout parameter(eg : archive_timeout = 60) or not? is it when we do timeout parameter the process of WAL file in log shipping is faster than default (the 0 default value indicates that it will until the WAL filled)? why?

I'm sorry i'm still confused in this situation.

4

1 回答 1

2

如果您想要及时复制,我建议启用流复制以及日志传送。

的主要目的archive_timeout是确保,当您使用日志传送进行 PITR 备份时,在服务器不生成大量 WAL 的情况下,数据丢失的最大时间窗口是这样的,否则段轮换将不常见。

于 2014-11-17T02:55:18.537 回答