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 1fKnUG-0006Zs-BF for pgsql-general@arkaria.postgresql.org; Mon, 21 May 2018 16:16:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fKnUF-0004T0-0I for pgsql-general@arkaria.postgresql.org; Mon, 21 May 2018 16:16:39 +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 1fKmLn-0004R2-Ue for pgsql-general@lists.postgresql.org; Mon, 21 May 2018 15:03:52 +0000 Received: from esa1.commvault.iphmx.com ([68.232.147.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fKmLk-0005b8-MD for pgsql-general@postgresql.org; Mon, 21 May 2018 15:03:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=commvault.com; i=@commvault.com; q=dns/txt; s=05082018; t=1526915028; x=1558451028; h=from:to:subject:date:message-id:mime-version; bh=SnT55XtZjhxbR1y0LvZUUePvMx2JEbJEk2fy1SteTbQ=; b=SxwvILk59Mmo7F4qO7uBnx4VAte/Lm0MhJ/tdTawm2xLL/20Sew+J9ns DnjwEKGnsvPS59vBvumHI32abd7xZsjcyzHBkzsGToA+vbGf/SB30nfps SH9egsA1sudS2bpFWvl8YrBS/JCPYbfFbGQ0v9FwsOa11tpiJBY9Itlzs s=; X-IronPort-AV: E=Sophos;i="5.49,426,1520913600"; d="scan'208,217";a="34228059" Received: from unknown (HELO POST-1.gp.cv.commvault.com) ([199.255.244.181]) by ob1.commvault.iphmx.com with ESMTP; 21 May 2018 11:03:44 -0400 Received: from POST-4.gp.cv.commvault.com (172.23.4.252) by POST-1.gp.cv.commvault.com (172.19.59.252) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Mon, 21 May 2018 11:03:20 -0400 Received: from POST-1.gp.cv.commvault.com (172.19.59.252) by POST-4.gp.cv.commvault.com (172.23.4.252) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Mon, 21 May 2018 11:03:19 -0400 Received: from POST-1.gp.cv.commvault.com ([fe80::89fe:a428:312b:67ec]) by POST-1.gp.cv.commvault.com ([fe80::89fe:a428:312b:67ec%19]) with mapi id 15.00.1293.004; Mon, 21 May 2018 11:03:19 -0400 From: Yashwanth Govinda Setty To: "pgsql-general@postgresql.org" Subject: Will Altering and Modifying tables during backup result in a corrupted server after the restore? Thread-Topic: Will Altering and Modifying tables during backup result in a corrupted server after the restore? Thread-Index: AdPxFNQOdaIZcxzITfWl/W4cuX5Y/A== Date: Mon, 21 May 2018 15:03:18 +0000 Message-ID: <4a42c6eb5542496ba13944c95e848325@POST-1.gp.cv.commvault.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [172.19.229.10] Content-Type: multipart/alternative; boundary="_000_4a42c6eb5542496ba13944c95e848325POST1gpcvcommvaultcom_" MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --_000_4a42c6eb5542496ba13944c95e848325POST1gpcvcommvaultcom_ Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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 databas= e/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 re= store?) 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 distrib= ution by others is strictly prohibited. If you have received the message by mista= ke, please advise the sender by reply email and delete the message. Thank you." ********************************************************************** --_000_4a42c6eb5542496ba13944c95e848325POST1gpcvcommvaultcom_ Content-Type: text/html; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable

Hi All,

 

We are trying this scenario:

Here are the steps being done:

1.     &= nbsp; Creating a big table. Identify the physical file on= the disk.

  1. While backup proc= ess is backing up a file associated with the table - update the rows , add = a column.
  2. R= estore 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 b= y 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 stat= e?

(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 f= or 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 de= lete the message. Thank you."
*****************************************= ***************************** --_000_4a42c6eb5542496ba13944c95e848325POST1gpcvcommvaultcom_--