public inbox for [email protected]  
help / color / mirror / Atom feed
From: flik <[email protected]>
To: [email protected]
Subject: Fixing Integrity check errors
Date: Mon, 14 Mar 2022 21:14:55 +0100
Message-ID: <[email protected]> (raw)

Hi!

What would be the best way to solve integrity errors (unique 
constraints) caused by a badly done dump/restore? My best guess as 
ignorant ass, it's simply to dump the current data (only), start a new 
project, apply the migrations and loading back data.
Given that the schema is exactly the same, would this work? If so, how 
can I do it with postgres?
I already tried to pg_dump --data-only but I keep getting weird errors.

Sorry if my message is confusing-confused, I'm quite new with databases!


view thread (2+ messages)  latest in thread

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], [email protected]
  Subject: Re: Fixing Integrity check errors
  In-Reply-To: <[email protected]>

* 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