Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gzXpE-00019o-6p for pgsql-general@arkaria.postgresql.org; Fri, 01 Mar 2019 02:23:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gzXpC-0008O5-IC for pgsql-general@arkaria.postgresql.org; Fri, 01 Mar 2019 02:22:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gzXpC-0008Nu-5x for pgsql-general@lists.postgresql.org; Fri, 01 Mar 2019 02:22:58 +0000 Received: from mail-ot1-x334.google.com ([2607:f8b0:4864:20::334]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gzXp9-0003UJ-QT for pgsql-general@lists.postgresql.org; Fri, 01 Mar 2019 02:22:56 +0000 Received: by mail-ot1-x334.google.com with SMTP id g1so19618130otj.11 for ; Thu, 28 Feb 2019 18:22:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=NBidnnslTL6AEp5sgkGvt3LFAbLPsnuK74nk4xob5es=; b=Xg8R7qCOZju7aGPT+tSoZkRfvIzvnEODQ2SuWx//UySvTF593AREZPEkOHBmnpEXbz fCSib39wCiEJ6P0myegA2rE/6Q0SQeZaFhnUvTrpDTNodFiuI9HLr7dunJw+CzBaxM85 22Bc0i6+xTqYX2xIzARGSOnKRZOmXmGGO2Ci1Crftb6goH1qLsBHrGix42A5Wf7IgZ5m o3nM5KXa2NBYAvMKBi+O2qLFhg1EKRpKr+QJvc3d7/Botpkz5JDSllLq5/sz2h1jAg4S 1DnOTm3f6arCYJxlqaXD0f8hzF3t4k2iNgOtAdNQ5z3PsXLA3yXAlf/dhjN69u0Syl6L Kemw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=NBidnnslTL6AEp5sgkGvt3LFAbLPsnuK74nk4xob5es=; b=LZASF3folwvDcnSbGKRFun5n678CHqY+/lzKQVFWArAxI9Vgt1Lf3MIdtRzeToM7Ff T9ILaBzeS0362y10gN7kJ58CmQwT5XOoRupbwq350jQKM/hBADCDPo51txotZ9DPWJ6D zffV/hsGKUnJkHWbzjnX+tLEkkotCDv9V+lGxjwMiILl+RAY5UNTRw3MHy6LT11iGEWP BMrVQH9SrFOPXgxxnZFETzNygr5vSod/C9Vik8hl5tkZdrKPBzhDzqXYvLPd2dKaTYT8 7gOWQeiXxH4pBjrpj/UXyc+nrHk6pj+FwXNGHKgrn0062I2vJr90xDZCwmYy2kg5qcI6 xvhg== X-Gm-Message-State: APjAAAVgYXTAln61edETH4X0Qw3yZOXMz1pzVJ8G6eumjJwhtWQslGOU yva0HYzZpFB/piLTdyjrOJAMfoDU X-Google-Smtp-Source: APXvYqzLMJj5ogb0svwZDe7czVlBjVq8cniLETuYNJFuE9xPQY7JLs+wnCd4PDTvXbHb4M6ha7ZlZQ== X-Received: by 2002:a9d:7ad6:: with SMTP id m22mr2042625otn.166.1551406974934; Thu, 28 Feb 2019 18:22:54 -0800 (PST) Received: from [192.168.1.10] (ip70-171-116-89.no.no.cox.net. [70.171.116.89]) by smtp.googlemail.com with ESMTPSA id c131sm8519280oif.3.2019.02.28.18.22.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Feb 2019 18:22:54 -0800 (PST) Subject: Re: validation of hot standby To: pgsql-general@lists.postgresql.org References: From: Ron Message-ID: <05c604c1-7226-9fdf-309c-bf6f3d95abbd@gmail.com> Date: Thu, 28 Feb 2019 20:22:53 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------934A92AF910E0238ED873B48" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------934A92AF910E0238ED873B48 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 2/28/19 8:00 PM, Julie Nishimura wrote: > Hello, > We set up our hot standby by putting master into archive mode and issuing > pg_basebackup command, and we are about to start our hot standby instance. > What are the things you suggest for validation (assuming it will come up > cleanly) and replication caught up? Run the program pg_controldata on the secondary server. Specifically look for the last checkpoint timestamp.  It will lag some, depending on how checkpoint frequency is configured on the master. > > What do I need to check in addition, making sure the data is clean and not > corrupted? > > thanks for your help -- Angular momentum makes the world go 'round. --------------934A92AF910E0238ED873B48 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit On 2/28/19 8:00 PM, Julie Nishimura wrote:
Hello,
We set up our hot standby by putting master into archive mode and issuing pg_basebackup command, and we are about to start our hot standby instance. What are the things you suggest for validation (assuming it will come up cleanly) and replication caught up?

Run the program pg_controldata on the secondary server.  Specifically look for the last checkpoint timestamp.  It will lag some, depending on how checkpoint frequency is configured on the master.


What do I need to check in addition, making sure the data is clean and not corrupted?

thanks for your help

--
Angular momentum makes the world go 'round.
--------------934A92AF910E0238ED873B48--