From: | Rijo Roy <rjo_roy(at)yahoo(dot)com> |
---|---|
To: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Database Refresh confusion |
Date: | 2018-07-13 11:10:55 |
Message-ID: | 142590143.3855746.1531480255648@mail.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Hello Experts,
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 postgresql logs and look out for keywords such as recovery. He was refreshing the database by restoring a database backup but the method he tried surprised me. The below commands were used:pg_basebackup -h remoteservername -p Port number -D /path -X s -c fast -n -P -vAnd he just started the postgresql cluster using pg_ctl
I told him that he missed creating a recovery.conf with a recovery command, but he told me that he always does this way. I told him that the process 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 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
Sent from Yahoo Mail on Android
From | Date | Subject | |
---|---|---|---|
Next Message | kpi6288 | 2018-07-13 11:57:35 | Disable TRUST authentication by using ClientAuthentication_hook |
Previous Message | Łukasz Jarych | 2018-07-13 10:58:56 | Re: Read only to schema |