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 21:30:26
Message-ID: ae4bb215-1015-be4d-3565-f0288ff5c21c@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 5/14/19 2:19 PM, Rich Shepard wrote:
> 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.

Or just fetch them from the table data you have saved in the dump file.

>
> 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.

Yeah, that will save a lot of heartburn:)

>
> Thanks,
>
> Rich
>
>

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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Ron 2019-05-14 22:09:39 Re: Table update: restore or replace?
Previous Message Brad Nicholson 2019-05-14 21:29:31 Re: Re: Table update: restore or replace?