Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jrEtu-0008Ql-Ns for pgsql-admin@arkaria.postgresql.org; Fri, 03 Jul 2020 06:10:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jrEtr-00054p-RP for pgsql-admin@arkaria.postgresql.org; Fri, 03 Jul 2020 06:10:15 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jrEtr-00054h-Fb for pgsql-admin@lists.postgresql.org; Fri, 03 Jul 2020 06:10:15 +0000 Received: from mail-pl1-x642.google.com ([2607:f8b0:4864:20::642]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jrEto-0002jN-N7 for pgsql-admin@postgresql.org; Fri, 03 Jul 2020 06:10:14 +0000 Received: by mail-pl1-x642.google.com with SMTP id o1so5677922plk.1 for ; Thu, 02 Jul 2020 23:10:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=parascadd-com.20150623.gappssmtp.com; s=20150623; h=from:to:references:in-reply-to:subject:date:message-id:mime-version :content-transfer-encoding:thread-index:content-language; bh=MRHutJ3kR1zMP0PYFyX17rxezJx3vI99myYJMZs7ask=; b=xdFxQpaMfdm9z0RxL7lgcLOmWidZGuLEdSJjaAkPvY0P/7bH8StnwYCbY5qaRyM4vB yG4xmq1Esro6sYTJMbeAUXa9sZfbdAmMLk12ggfZi9Z1Xe7FYTWGTb2zQvyUEwlJiA7q vtVOrhbsFG39QcabuKGb6QOsqdqiZQJn1bZmgOxbyCcdCIfX1WBfsbMNOIP6XBg+uOPR 4AFMPFsCqmdTl8jGpIKBNXLtiAApjrGy7pki3D6/qRKN0dxfdsbKqRbqZp4FCyv1sdY7 qKqx4m5aJnkjHjQ4jgheLyJVLLUUeTHjBlwksArPJH4PnNXviQgP+IE6rYuKOJwmYjw6 /m6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:references:in-reply-to:subject:date :message-id:mime-version:content-transfer-encoding:thread-index :content-language; bh=MRHutJ3kR1zMP0PYFyX17rxezJx3vI99myYJMZs7ask=; b=l94WbHVKwmTEVkn0K/wRTqTd3dPgMRFue3XykDU6s4BuUs3NPqM1dHYVdXArBg0+5+ XvZdaunKq4empifvwr3woLYJ6upW+4FncRxBO1G6aAF/7Wa/JlXWrGmENOxw7IsjrHbl i5YhURe387eBhBqzYCpkDgsp2DdMU3p5rZYvRKC6EcQ8EmnSh1aejJP6DjzbY3vCsCXw T9cH9T5fESJDJCzRKPq6A/dXNcbkd7D79R/l5eZ/Wd1vnI2JzWoS1pBxvSasrmACPlS1 0tTuIYM+8SBnfKiQPteSaxqzAOdYZvlzUy7n4vr8RQy/ObQCrPtjxjh2hJtTLeINiA/W RZDw== X-Gm-Message-State: AOAM532Us9srjD+al/0UWDpa+EeQDKIoXZjwF6uRSg7yivzOw+DblXU+ kDRxUF4Fsu5CSuiqMy3i39tfhMP3m6l/vnKe X-Google-Smtp-Source: ABdhPJyiBb6GUcRNvg+mP4QTj1EXa/O0Qgz80qQv0VVnX5wnsX/euf9THw5ygIo6u6ES15i0LBYXtQ== X-Received: by 2002:a17:902:326:: with SMTP id 35mr4731796pld.151.1593756610041; Thu, 02 Jul 2020 23:10:10 -0700 (PDT) Received: from AMBO ([103.214.130.6]) by smtp.gmail.com with ESMTPSA id 25sm10279962pfi.7.2020.07.02.23.10.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Jul 2020 23:10:09 -0700 (PDT) From: To: References: <20200702141444.GJ3125@tamriel.snowman.net> <20200702152608.GQ3125@tamriel.snowman.net> In-Reply-To: <20200702152608.GQ3125@tamriel.snowman.net> Subject: RE: [HELP] Issue with standby server using WAL archive Date: Fri, 3 Jul 2020 11:40:06 +0530 Message-ID: <00b301d65100$9a9627b0$cfc27710$@parascadd.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQHzB/EaD82MfkglnCUcGHJ7WwSjywGGT0s6Agu5lYIBgsAzAKiTSt5g Content-Language: en-in List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I do not wish to get emails from these. Kindly remove me from mailing list. -----Original Message----- From: Stephen Frost Sent: 02 July 2020 20:56 To: Praveen Kumar K S Cc: pgsql-admin@postgresql.org Subject: Re: [HELP] Issue with standby server using WAL archive Greetings, * Praveen Kumar K S (praveenssit@gmail.com) wrote: > I'm using 9.6 That's quite old- I'd strongly recommend that you look at using a newer version. > I have 3 servers. Let us call it pg1,pg2,pg3 > > pg1 is master > pg2 is hot stand by > pg3 is a DR server which doesn't serve any requests. hot_standby is > not enabled in postgresql.conf on DR server. If hot_standby isn't enable then you won't be able to connect- which is entirely fine, but if that's what you want then I'm not sure what the error is that you're concerned about..? > pg1 and pg2 are in the same network and are in sync. Ok. Note that having only one replica when you're using syncronous replication will lead to a situation where, if either node fails, the database system won't accept writes. > I followed official documentation and used the cp command. Are there > any other best approaches ? The documentation provides an example of how to use the command, using 'cp' isn't actually recommended. I'd strongly suggest you look at proper backup/archiving solutions for PostgreSQL like pgbackrest to use instead. Thanks, Stephen