[英]WAL level not sufficient for making an online backup
I have tried to do database replication in linux 7.0 red hat using postgresql. 我尝试使用PostgreSQL在linux 7.0 red hat中进行数据库复制。
I refered this URL for Confuring http://blog.terminal.com/postgresql-replication-and-backup-methods/ I completed the the steps upto this step 我引用此URL进行配置是http://blog.terminal.com/postgresql-replication-and-backup-methods/我已经完成了此步骤
- Configuring the slave server
配置从服务器
but the step 但是一步
- Initial replication
初始复制
when I executed this command in Master 当我在Master中执行此命令时
-bash-4.2$ psql -c "select pg_start_backup('initial_backup');"
I got Error Like this 我有这样的错误
ERROR: WAL level not sufficient for making an online backup
HINT: wal_level must be set to "archive" or "hot_standby" at server start.
So kindly let me know where we are wrong. 因此,请让我知道我们哪里错了。
On your master PostgreSQL server's configuration file <PG_DATA>/postgresql.conf
there is parameter called wal_level
it should be set to either "archive"
or "hot_standby"
在您的主PostgreSQL服务器的配置文件
<PG_DATA>/postgresql.conf
有一个名为wal_level
参数,应将其设置为"archive"
或"hot_standby"
Both said to postgres to keep WAL segmetnts for replication server. 双方都向postgres表示,以将WAL段保留为复制服务器。 The difference between the two is rather simple:
两者之间的区别非常简单:
"hot_standby"
means that your replication server will allow connections for SELECT
statements "hot_standby"
表示您的复制服务器将允许SELECT
语句的连接
"archive"
means you don't want that possibility. "archive"
表示您不希望这种可能性。
More to read in this tutorial on streaming replication Also keep in mind that change of wal_level
property needs server restart to take an effect. 有关流复制的更多信息,请阅读本教程。还请记住,更改
wal_level
属性需要重新启动服务器才能生效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.