public inbox for [email protected]  
help / color / mirror / Atom feed
From: Tom Lane <[email protected]>
To: Fire Emerald <[email protected]>
Cc: [email protected]
Subject: Re: How to interpret 'depends on' errors in pg_restore?
Date: Thu, 28 Mar 2024 10:00:06 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>

Fire Emerald <[email protected]> writes:
> Then i did a pg_restore -d target --verbose -Fc file.dump and saw in the 
> output this:

> 5145 0 730750 TABLE subpartitions backends_y2024w03 userA
> ;        depends on: 237
> .... and so on ...

That is not an error, it's just verbose display of one of the items
in the dump.

> Nothing was restored.

You would need to show us the actual errors.  (Suggestion:
leave off --verbose, it's just clutter.)  A guess though is
that the import failed because of foreign key constraints.
--data-only mode is not good at ordering the table loads to
ensure that FK constraints are satisfied on-the-fly.

			regards, tom lane






view thread (6+ 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], [email protected]
  Subject: Re: How to interpret 'depends on' errors in pg_restore?
  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