Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e00G5-00062G-GD for pgsql-admin@arkaria.postgresql.org; Thu, 05 Oct 2017 07:07:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1e00G5-0005hA-2u for pgsql-admin@arkaria.postgresql.org; Thu, 05 Oct 2017 07:07:49 +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.84_2) (envelope-from ) id 1e00G4-0005Xc-Ap for pgsql-admin@postgresql.org; Thu, 05 Oct 2017 07:07:48 +0000 Received: from mx1.mailbox.org ([80.241.60.212]) by makus.postgresql.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1e00G1-00018M-Eo for pgsql-admin@postgresql.org; Thu, 05 Oct 2017 07:07:47 +0000 Received: from smtp1.mailbox.org (smtp1.mailbox.org [80.241.60.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.mailbox.org (Postfix) with ESMTPS id 3C34D46B8D; Thu, 5 Oct 2017 09:07:41 +0200 (CEST) X-Virus-Scanned: amavisd-new at heinlein-support.de Received: from smtp1.mailbox.org ([80.241.60.240]) by spamfilter01.heinlein-hosting.de (spamfilter01.heinlein-hosting.de [80.241.56.115]) (amavisd-new, port 10030) with ESMTP id Za9aqf23Xzzm; Thu, 5 Oct 2017 09:07:28 +0200 (CEST) Message-ID: <1507187247.3119.1.camel@cybertec.at> Subject: Re: streaming replication corruption Q's From: Laurenz Albe To: ghiureai , "pgsql-admin@postgresql.org" Date: Thu, 05 Oct 2017 09:07:27 +0200 In-Reply-To: <59D5300C.4030701@nrc-cnrc.gc.ca> References: <59D5300C.4030701@nrc-cnrc.gc.ca> Organization: Cybertec Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org ghiureai wrote: > I'm reading PG 10 streaming replication manual, I would like to learn > from your expertise if this type of replication will copy a bad > segment/bit corrupt from master to slave host , will this possible to > happened ? Streaming replication happens on a physical level, so it does not pay attention to logical consistency. If the primary is suffering from data corruption, every data modification containing that data corruption will be replicated. > What are the most common issues you seeing when running streaming > replication, any files/bits corruption ( from my understanding > logical replication will replicate data corruption)where do you have to > pay attention when setting up a new system like this , That question is too general... Make sure that you are running the same operating system version on (ideally) the same hardware on all machines. Either set wal_keep_segments high enough or (more cumbersome, but more reliable) configure WAL shipping as a fallback when the standby has a longer down time. Yours, Laurenz Albe -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin