Re: pg_restore (fromuser -> touser)

From: Mayan <popalzie(at)gmail(dot)com>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: Ganesh Korde <ganeshakorde(at)gmail(dot)com>, Ninad Shah <nshah(dot)postgres(at)gmail(dot)com>, pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: pg_restore (fromuser -> touser)
Date: 2021-07-26 11:50:42
Message-ID: CAOeXn7pj9vk8it5JQihRDy3NjWXEFDJ5wQFB=4ABPE9DKj9pwg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks for the responses everyone and the reality check of how new features
get in. I will look into the suggestion by Vijaykumar in more detail and
try it out.

Thanks again,
Mayan

On Sun, Jul 25, 2021 at 10:11 PM David G. Johnston <
david(dot)g(dot)johnston(at)gmail(dot)com> wrote:

> On Sun, Jul 25, 2021 at 8:02 PM Ganesh Korde <ganeshakorde(at)gmail(dot)com>
> wrote:
>
>> You just need to export dump without any privileges. And while restoring
>> dump use the new role.
>>
>
> You should read the body of the original email and not just the subject
> line. The actual question pertains to schemas - which IIUC are tightly
> linked to roles in other DBs (hence the observed behavior elsewhere) but
> aside from some default search_path stuff are unrelated in PostgreSQL.
>
> David J.
>
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2021-07-26 11:57:24 Re: PostgreSQL reference coffee mug
Previous Message Rob Sargent 2021-07-26 11:44:28 Re: PostgreSQL reference coffee mug