pg开启归档模式 |
您所在的位置:网站首页 › fil配置 › pg开启归档模式 |
# - Archiving -
是否开启归档 #archive_mode = off # enables archiving; off, on, or always # (change requires restart)
归档命令,注意 %p %f %% 格式化的含义。 %p 是被归档的redo文件的路径, %f 是被归档的redo文档的文件名 %% 是百分号 #archive_command = '' # command to use to archive a logfile segment # placeholders: %p = path of file to archive # %f = file name only # e.g. 'test ! -f /mnt/server/archivedir/%f && cp %p /mnt/server/archivedir/%f'
超时强制归档,例:如果10分钟数据库都没有什么活动,一个redo文件没有写完,就不会归档, 但是我们希望数据库至少10分钟要切换一个日志,则可以使用archive_timeout #archive_timeout = 0 # force a logfile segment switch after this # number of seconds; 0 disables |
今日新闻 |
点击排行 |
|
推荐新闻 |
图片新闻 |
|
专题文章 |
CopyRight 2018-2019 实验室设备网 版权所有 win10的实时保护怎么永久关闭 |