Re: Methods to quiesce PostgreSQL DB without configuring log archival

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Methods to quiesce PostgreSQL DB without configuring log archival
Date: 2016-11-23 20:58:18
Message-ID: a1af2766-c018-7869-1621-b2bfdd77bff8@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 11/21/2016 10:23 PM, MEERA wrote:
> If archive_mode is not configured, and i use snapshot solution for
> backup of the server, how can i ensure data consistency? Is there a
> way to quiesce all the connections to DB?

select pg_startbackup(); before taking the file system copy or
snapshot, and

select pg_stopbackup(); when you're done.

--
john r pierce, recycling bits in santa cruz

In response to

Browse pgsql-general by date

  From Date Subject
Next Message azhwkd 2016-11-23 21:47:09 Re: query locks up when run concurrently
Previous Message Kevin Grittner 2016-11-23 20:34:14 Re: Methods to quiesce PostgreSQL DB without configuring log archival