public inbox for [email protected]
help / color / mirror / Atom feedFrom: David G. Johnston <[email protected]>
To: pgsql-novice <[email protected]>
Subject: Re: restore overwrite?
Date: Wed, 7 Sep 2022 09:31:11 -0700
Message-ID: <CAKFQuwZkmTAv-7_3cof5phaMqhfdTnWHVs+v-LssN=iF6O1QOA@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
On Wednesday, September 7, 2022, Anne Wainwright <[email protected]>
wrote:
> Hi,
>
> I want to do a restore to write over the top of existing data.
>
> The unique key prevents this. Should I rather TRUNCATE the tables
> concerned before the restore? That is a bit scary if the restore does
> not work. Is there a better way.
>
> (This data on v.8.4.4 which is being moved to latest version 14).
>
> Thanks for answer in advance
>
> Anne
>
>
If you cannot just do a simple restore into an empty v14 database you are
probably better off not thinking of this as a restore operation but instead
an ETL operation and write ETL code to extract data from the v8 database,
do any necessary transforms (possibly within the v14 database but within a
staging table), then merge the transformed data into the real v14 tables.
David J.
view thread (2+ messages)
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: restore overwrite?
In-Reply-To: <CAKFQuwZkmTAv-7_3cof5phaMqhfdTnWHVs+v-LssN=iF6O1QOA@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox