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:19:44
Message-ID: alpine.LNX.2.20.1905141413540.30120@salmo.appl-ecosys.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 14 May 2019, Adrian Klaver wrote:

> Does the table you overwrote the data change much?

Adrian,

Yes. It's in my business tracking database so it's updated almost every day.

> If not it might be safer to just fetch it from the April 20th dump and
> then apply the changes since then.

The column I FUBAR'd holds e-mail addresses. What I'll do is set all to NULL
and find the e-mail addresses I have external to the database and enter them
in a large UPDATE TABLE.

And I think I'll set up a cron job to do a database dump each day with the
date appended to the file name in the bash shell script.

Thanks,

Rich

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2019-05-14 21:21:52 Re: Table update: restore or replace?
Previous Message Tom Lane 2019-05-14 21:10:39 Re: Table update: restore or replace?