Re: Table update: restore or replace?

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Rich Shepard <rshepard(at)appl-ecosys(dot)com>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Table update: restore or replace?
Date: 2019-05-14 20:57:34
Message-ID: 5fb66fe3-0aa0-3d6d-db53-172a6c3f1a30@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 5/14/19 1:46 PM, Rich Shepard wrote:
> I just updated a column in a table (postgresql-10.5) and accidently applied
> it to all 185 rows rather than just one. There is no active transaction to
> roll back.
>
> Each night I do a backup and just started working on the database a few

A file level backup or database dump?

> minutes ago. If I restore all contents of
> /var/lib/pgsql/10/data/ will this restore the database's state before the
> botched update and two previous updates today?
>
> Rich
>
>
>

--
Adrian Klaver
adrian(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2019-05-14 20:59:18 Re: Table update: restore or replace?
Previous Message Rich Shepard 2019-05-14 20:46:32 Table update: restore or replace?