Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fFHQD-0000Fk-9K for pgsql-general@arkaria.postgresql.org; Sun, 06 May 2018 11:01:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fFHQB-0002TU-BG for pgsql-general@arkaria.postgresql.org; Sun, 06 May 2018 11:01:39 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fFHQA-0002TI-W2 for pgsql-general@lists.postgresql.org; Sun, 06 May 2018 11:01:39 +0000 Received: from mx2.mailbox.org ([80.241.60.215]) by makus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fFHQ2-0002vd-RA for pgsql-general@postgresql.org; Sun, 06 May 2018 11:01:37 +0000 Received: from smtp2.mailbox.org (smtp2.mailbox.org [80.241.60.241]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx2.mailbox.org (Postfix) with ESMTPS id D447C41030; Sun, 6 May 2018 13:01:25 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp2.mailbox.org ([80.241.60.241]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id sP4on6NjsijO; Sun, 6 May 2018 13:01:23 +0200 (CEST) Message-ID: <1525604481.2342.2.camel@cybertec.at> Subject: Re: what's the error meaning? on mast/slavery replication . From: Laurenz Albe To: =?UTF-8?Q?=E6=9E=97=E6=99=93=E4=B8=9C?= , pgsql-general@postgresql.org Date: Sun, 06 May 2018 13:01:21 +0200 In-Reply-To: <58b1c285.30.16326f984bb.Coremail.lin_xd@126.com> References: <58b1c285.30.16326f984bb.Coremail.lin_xd@126.com> Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 林晓东 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