Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-admin by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group