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 1fdvyi-00011b-FO for pgsql-general@arkaria.postgresql.org; Fri, 13 Jul 2018 11:11:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fdvyf-0004vd-Dw for pgsql-general@arkaria.postgresql.org; Fri, 13 Jul 2018 11:11:09 +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 1fdvyd-0004vS-VP for pgsql-general@lists.postgresql.org; Fri, 13 Jul 2018 11:11:09 +0000 Received: from sonic317-22.consmr.mail.gq1.yahoo.com ([98.137.66.148]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fdvyZ-0005Cp-Cq for pgsql-general@postgresql.org; Fri, 13 Jul 2018 11:11:06 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1531480261; bh=2n9N+Owd7VIcwx43M7c2SOmsiNOIgnwj+gGzn7zl1k4=; h=Date:From:Reply-To:To:Subject:References:From:Subject; b=IsBJnYf+REwXXs4dv/YybNPNXJhSwvW7zSLVVe22tmRq5xc2eOBuppJ/EexFmCoQsh7jBYPUPSE2V6PDjMzL7ixgImeIVulV9hb1qo+5DgLN3sd7k4V9EtgAUKJMijVmvtwQWDqjsqIObpN2MODHZxhEl1q/eMx23AokqA/r7wHFnt3iBDS7DlDpNEQ+gtzxZrJW9BNOiuggl6/XIKOt0Xww0JAjFiCtXA0sLjZOEFlPymic0vDFQYkE2TjGAspCjgHpI9kVPqQrdqH+aKkMN+nW6wfozrFFTUrGLILUhZ2nzXPX1FPxgIS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sMOjOdweNAUxlw-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.gq1.yahoo.com with HTTP; Fri, 13 Jul 2018 11:11:01 +0000 Date: Fri, 13 Jul 2018 11:10:55 +0000 (UTC) From: Rijo Roy Reply-To: "rjo_roy@yahoo.com" To: "pgsql-general@postgresql.org" Message-ID: <142590143.3855746.1531480255648@mail.yahoo.com> Subject: Database Refresh confusion MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3855745_673321117.1531480255646" References: <142590143.3855746.1531480255648.ref@mail.yahoo.com> X-Mailer: WebService/1.1.12062 YahooMailAndroidMobile YMobile/1.0 (com.yahoo.mobile.client.android.mail/5.28.3; Android/8.0.0; HUAWEIDUK-L09; HWDUK; HUAWEI; DUK-L09; 4.02; 1768x1080;) Content-Length: 4103 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_3855745_673321117.1531480255646 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello Experts,=C2=A0 Today, my colleague asked me if there was any way to check the progress of = recovery (backup-recovery) in Postgresql. I told him to check the postgresq= l logs and look out for keywords such as recovery. He was refreshing the da= tabase by restoring a database backup but the method he tried surprised me.= =C2=A0The below commands were used:pg_basebackup -h remoteservername -p Por= t number -D /path -X s -c fast -n -P -vAnd he just started the postgresql c= luster using pg_ctl=C2=A0 I told him that he missed creating a recovery.conf with a recovery command,= but he told me that he always does this way.=C2=A0 I told him that the pro= cess is wrong and this will do a crash recovery and there are high chances = of data corruption. He replied saying he never faced an issue following his= process of doing it without recovery.conf 2 questions:1. Is this a good practice for refreshing data into a new serve= r.=C2=A02. Is there any other mechanism to track the restoration process ot= her than to check the postgresql logs.=C2=A0 The postgresql version used in 10.0 on a Linux 6.9 Thanks,=C2=A0Rijo Roy=C2=A0 Sent from Yahoo Mail on Android ------=_Part_3855745_673321117.1531480255646 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello Experts, 
Today, my coll= eague asked me if there was any way to check the progress of recovery (back= up-recovery) in Postgresql. I told him to check the postgresql logs and loo= k out for keywords such as recovery. He was refreshing the database by rest= oring a database backup but the method he tried surprised me. 
The below commands were = used:
pg_baseback= up -h remoteservername -p Port number -D /path -X s -c fast -n -P -v
<= div id=3D"yMail_cursorElementTracker_1531479877415">And he just started the= postgresql cluster using pg_ctl 

I told him that he missed creating a recovery.conf with a recover= y command, but he told me that he always does this way.  I told him th= at the process is wrong and this will do a crash recovery and there are hig= h chances of data corruption. He replied saying he never faced an issue fol= lowing his process of doing it without recovery.conf

2 questions:
1. Is this a good practice for refreshing data into a n= ew server. 
= 2. Is there any other mechanism to track the restoration process other than= to check the postgresql logs. 

The postgresql version used in 10.0 on a Linux 6.9


Thanks, 
Rijo Roy 

------=_Part_3855745_673321117.1531480255646--