Re: what's the error meaning? on mast/slavery replication .

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: 林晓东 <lin_xd(at)126(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: what's the error meaning? on mast/slavery replication .
Date: 2018-05-06 11:01:21
Message-ID: 1525604481.2342.2.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

林晓东 wrote:
>
> hi,all
> I got this when setup two replication server:
>
> 致命错误: 在主用服务器和备用服务器之间,数据库系统标识符是不一样的。
> 详细信息: 主用服务器的标识符是6551342231479624101,备用服务器的标识符是6551367700460643417。
> ---fatal erro: in main and backup server ,the database 's system id is not same...
> what's mean of this ,how to deal with ?

You need to start the standby with a physical backup of the database,
e.g. using pg_basebackup.
You cannot restore a database dump taken with pg_dump to start
streaming replication, because that is a logical backup (there is
no guarantee that the same data are in the same block of the same file).

Yours,
Laurenz Albe

--
+43-670-6056265
Cybertec Schönig & Schönig GmbH
Gröhrmühlgasse 26, A-2700 Wiener Neustadt
Web: https://www.cybertec-postgresql.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Vick Khera 2018-05-06 15:31:38 Re: Known Bugs on Postgres 9.5
Previous Message David G. Johnston 2018-05-05 23:49:17 Known Bugs on Postgres 9.5