From: Alvaro Aguayo Garcia-Rada <aaguayo@opensysperu.com>
To: Yashwanth Govinda Setty <ygovindasetty@commvault.com>
Cc: PostgreSql-general <pgsql-general@postgresql.org>
Subject: Re: Will Altering and Modifying tables during backup result in a corrupted server after the restore?
Date: Mon, 21 May 2018 11:19:46 -0500 (PET)
Message-ID: <1716738968.141037.1526919586759.JavaMail.zimbra@opensysperu.com> (raw)
In-Reply-To: <4a42c6eb5542496ba13944c95e848325@POST-1.gp.cv.commvault.com>
References: <4a42c6eb5542496ba13944c95e848325@POST-1.gp.cv.commvault.com>
Not sure if such case would corrup the backup, but I won't make a backup just by copying the data directory.
Use pg_basebackup instead, it's safer
Regards,
Alvaro Aguayo
Operations Manager
Open Comb Systems E.I.R.L.
Office: (+51-1) 3377813 | Mobile: (+51) 995540103 | (+51) 954183248
Web: www.ocs.pe
----- Original Message -----
From: "Yashwanth Govinda Setty" <ygovindasetty@commvault.com>
To: "PostgreSql-general" <pgsql-general@postgresql.org>
Sent: Monday, 21 May, 2018 10:03:18
Subject: Will Altering and Modifying tables during backup result in a corrupted server after the restore?
Hi All,
We are trying this scenario:
Here are the steps being done:
1. Creating a big table. Identify the physical file on the disk.
1. While backup process is backing up a file associated with the table - update the rows , add a column.
2. Restore the server with transaction logs
We are backing up (copying) the entire postgres data directory. The database/table file being backed up (copied), is modified by running alter/update queries on the table.
When we restore the copied data directory and replay/apply the transaction logs, will the server be restored to an healthy state?
(The files modified during backup can be corrupted, will this affect the restore?)
Thanks,
Yashwanth
***************************Legal Disclaimer***************************
"This communication may contain confidential and privileged material for the
sole use of the intended recipient. Any unauthorized review, use or distribution
by others is strictly prohibited. If you have received the message by mistake,
please advise the sender by reply email and delete the message. Thank you."
**********************************************************************
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: aaguayo@opensysperu.com, ygovindasetty@commvault.com
Subject: Re: Will Altering and Modifying tables during backup result in a corrupted server after the restore?
In-Reply-To: <1716738968.141037.1526919586759.JavaMail.zimbra@opensysperu.com>
References: <4a42c6eb5542496ba13944c95e848325@POST-1.gp.cv.commvault.com> <1716738968.141037.1526919586759.JavaMail.zimbra@opensysperu.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox