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 1fKnWe-0006jl-2u for pgsql-general@arkaria.postgresql.org; Mon, 21 May 2018 16:19:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fKnWc-0005Mz-HE for pgsql-general@arkaria.postgresql.org; Mon, 21 May 2018 16:19:06 +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 1fKnWc-0005Mm-5F for pgsql-general@lists.postgresql.org; Mon, 21 May 2018 16:19:06 +0000 Received: from adriana.opensysperu.com ([2607:5300:60:8392::1004]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fKnWY-0007FB-W5 for pgsql-general@postgresql.org; Mon, 21 May 2018 16:19:04 +0000 Received: from localhost (localhost [IPv6:::1]) by adriana.opensysperu.com (Postfix) with ESMTP id D248A826F4; Mon, 21 May 2018 11:19:47 -0500 (-05) Received: from adriana.opensysperu.com ([IPv6:::1]) by localhost (adriana.opensysperu.com [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id 5DFG0hUYL1y9; Mon, 21 May 2018 11:19:47 -0500 (-05) Received: from localhost (localhost [IPv6:::1]) by adriana.opensysperu.com (Postfix) with ESMTP id EFFCB826F8; Mon, 21 May 2018 11:19:46 -0500 (-05) X-Virus-Scanned: amavisd-new at opensysperu.com Received: from adriana.opensysperu.com ([IPv6:::1]) by localhost (adriana.opensysperu.com [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id Dd5t2GpkvgxF; Mon, 21 May 2018 11:19:46 -0500 (-05) Received: from adriana.opensysperu.com (adriana.opensysperu.com [158.69.30.115]) by adriana.opensysperu.com (Postfix) with ESMTP id D5A60826F4; Mon, 21 May 2018 11:19:46 -0500 (-05) Date: Mon, 21 May 2018 11:19:46 -0500 (PET) From: Alvaro Aguayo Garcia-Rada To: Yashwanth Govinda Setty Cc: PostgreSql-general Message-ID: <1716738968.141037.1526919586759.JavaMail.zimbra@opensysperu.com> In-Reply-To: <4a42c6eb5542496ba13944c95e848325@POST-1.gp.cv.commvault.com> References: <4a42c6eb5542496ba13944c95e848325@POST-1.gp.cv.commvault.com> Subject: Re: Will Altering and Modifying tables during backup result in a corrupted server after the restore? MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Mailer: Zimbra 8.8.7_GA_1964 (ZimbraWebClient - GC66 (Linux)/8.8.7_GA_1964) Thread-Topic: Will Altering and Modifying tables during backup result in a corrupted server after the restore? Thread-Index: AdPxFNQOdaIZcxzITfWl/W4cuX5Y/JvxH4w+ List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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" To: "PostgreSql-general" 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." **********************************************************************