Re: Table update: restore or replace?

From: Rich Shepard <rshepard(at)appl-ecosys(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Table update: restore or replace?
Date: 2019-05-14 21:21:52
Message-ID: alpine.LNX.2.20.1905141419490.30120@salmo.appl-ecosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 14 May 2019, Tom Lane wrote:

> Yeah. You can't just selectively copy files, because the data files are
> dependent on the contents of the pg_xact transaction log; it's all or
> nothing.

Tom,

That's why I thought of copying the entire data/ directory.

> Also, I don't know what method you've been using to make file-level
> backups, but they're really pretty worthless unless you (a) stop the
> server or (b) use a filesystem snapshot. Otherwise you're very likely to
> have inconsistent data.

I run dirvish <http://www.dirvish.org/> which runs each night starting at
00:30 am when there's no activity (by me, at least) on the database.

Regards,

Rich

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Brad Nicholson 2019-05-14 21:29:31 Re: Re: Table update: restore or replace?
Previous Message Rich Shepard 2019-05-14 21:19:44 Re: Table update: restore or replace?