From: Tom Lane <tgl@sss.pgh.pa.us>
To: Wells Oliver <wells.oliver@gmail.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: pg_dump directory format and proper ordering
Date: Thu, 10 Jun 2021 21:56:15 -0400
Message-ID: <1832919.1623376575@sss.pgh.pa.us> (raw)
In-Reply-To: <CAOC+FBWRLmJDBx6YewbXZvqTzxQgFJ1ybAykjw95aiR90EBk=g@mail.gmail.com>
References: <CAOC+FBWRLmJDBx6YewbXZvqTzxQgFJ1ybAykjw95aiR90EBk=g@mail.gmail.com>
Wells Oliver <wells.oliver@gmail.com> writes:
> Hi: I wanted to check on something: if I pg_dump four schemas in directory
> format with a selection of schemas, and then pg_restore, I'm assuming psql
> will know the order of priority for restoration, meaning it will restore
> schema A first if schema B/C/D depend on those entities, right?
It tracks dependencies at the per-object level. I'm not aware of any
way that a schema as such could depend on another, but it should take
care of correct restoration order for the objects within them.
regards, tom lane
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: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, wells.oliver@gmail.com
Subject: Re: pg_dump directory format and proper ordering
In-Reply-To: <1832919.1623376575@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox