ITPub博客

首页 > Linux操作系统 > Linux操作系统 > PostgreSQL归档日志配置

PostgreSQL归档日志配置

原创 Linux操作系统 作者:std1984 时间:2009-12-15 21:57:37 0 删除 编辑

环境: windows sever 2003 , postgresql 8.4

在PostgreSQL的安装目录下找到postgresql.conf文件,将其中的archive_mode , archive_command 修改为如下:

# - Archiving -

archive_mode = on  # allows archiving to be done
    # (change requires restart)

archive_command = 'copy "%p" D:\\program\\postgresql_archivedlog\\"%f"'  # command to use to archive a logfile segment

archive_timeout = 600  # force a logfile segment switch after this
    # number of seconds; 0 disables

 

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/16582684/viewspace-622519/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: PostgreSQL切换日志
请登录后发表评论 登录
全部评论

注册时间:2008-12-29

  • 博文量
    171
  • 访问量
    1401344