pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: 林晓东 <lin_xd@126.com>
To: pgsql-general@postgresql.org
Subject: Re: what's the error meaning?  on mast/slavery replication .
Date: Sun, 06 May 2018 13:01:21 +0200
Message-ID: <1525604481.2342.2.camel@cybertec.at> (raw)
In-Reply-To: <58b1c285.30.16326f984bb.Coremail.lin_xd@126.com>
References: <58b1c285.30.16326f984bb.Coremail.lin_xd@126.com>

林晓东 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




view thread (2+ messages)

Message-ID: <1525604481.2342.2.camel@cybertec.at>
Permalink:  ../1525604481.2342.2.camel@cybertec.at/
Also on:    postgresql.org/message-id/1525604481.2342.2.camel@cybertec.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, lin_xd@126.com
  Subject: Re: what's the error meaning?  on mast/slavery replication .
  In-Reply-To: <1525604481.2342.2.camel@cybertec.at>
  References: <58b1c285.30.16326f984bb.Coremail.lin_xd@126.com> <1525604481.2342.2.camel@cybertec.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox