From: | Wells Oliver <wells(dot)oliver(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | pgsql-admin <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: pg_dump directory format and proper ordering |
Date: | 2021-06-11 03:37:17 |
Message-ID: | CAOC+FBU9K=RGWxphKU41h+dJ0MjponR-hzUE56Xjk7n0aPagOw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Is there a potential issue when restoring in parallel?
I notice for example it fails to re-create some mat views I have in schema
B as they query from some table in schema A that hasn't been created yet at
that moment.
On Thu, Jun 10, 2021 at 6:56 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> 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
>
--
Wells Oliver
wells(dot)oliver(at)gmail(dot)com <wellsoliver(at)gmail(dot)com>
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2021-06-11 03:54:41 | Re: pg_dump directory format and proper ordering |
Previous Message | Tom Lane | 2021-06-11 01:56:15 | Re: pg_dump directory format and proper ordering |