Re: Restore dump into different databases/owners

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Andreas Haumer <andreas(at)xss(dot)co(dot)at>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Restore dump into different databases/owners
Date: 2008-01-12 17:15:25
Message-ID: 9118.1200158125@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Andreas Haumer <andreas(at)xss(dot)co(dot)at> writes:
> I now solved it by temporarily adding the "superuser" privilege
> to the roles in question.

That should not be necessary, unless the dump contained objects that
require superuser permission to create (such as C-language functions)
--- in which case giving ownership of them to a non-superuser account
seems a bit unwise anyway.

Exactly what problems did you have using "-O -U user" ?

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2008-01-12 17:21:43 Re: 8.3 RC1 - Logging and filenames
Previous Message Andreas Haumer 2008-01-12 16:25:45 Re: Restore dump into different databases/owners