标签:归档 com postgre 修改 comm pos gre arc mode
postgres 开始wal归档:a.修改wal_level参数:
alter system set wal_level= ‘replica‘;
postgres=# alter system set wal_level= ‘replica‘;
ALTER SYSTEM
b.修改archive_mode参数:
alter system set archive_mode= ‘on‘;
postgres=# alter system set archive_mode= ‘on‘;
ALTER SYSTEM
c.修改archive_command 参数:
alter system set archive_command = ‘/bin/cp -i %p /pgdata/10/archive_wal/%f‘;
postgres=# alter system set archive_command = ‘/bin/cp -i %p /pgdata/10/archive_wal/%f‘;
ALTER SYSTEM
标签:归档 com postgre 修改 comm pos gre arc mode
原文地址:http://blog.51cto.com/1937519/2327897