Re: pg_dump directory format and proper ordering

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Wells Oliver <wells(dot)oliver(at)gmail(dot)com>
Cc: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: pg_dump directory format and proper ordering
Date: 2021-06-11 01:56:15
Message-ID: 1832919.1623376575@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Wells Oliver <wells(dot)oliver(at)gmail(dot)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

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Wells Oliver 2021-06-11 03:37:17 Re: pg_dump directory format and proper ordering
Previous Message Wells Oliver 2021-06-11 01:32:03 pg_dump directory format and proper ordering