pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andreas Haumer <andreas@xss.co.at>
Cc: pgsql-admin@postgresql.org
Subject: Re: Restore dump into different databases/owners
Date: Sat, 12 Jan 2008 12:15:25 -0500
Message-ID: <9118.1200158125@sss.pgh.pa.us> (raw)
In-Reply-To: <4788EA09.4050808@xss.co.at>
References: <4788B647.1050600@xss.co.at>
	<4788EA09.4050808@xss.co.at>

Andreas Haumer <andreas@xss.co.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



view thread (5+ messages)  latest in thread

Message-ID: <9118.1200158125@sss.pgh.pa.us>
Permalink:  ../9118.1200158125@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9118.1200158125@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, andreas@xss.co.at
  Subject: Re: Restore dump into different databases/owners
  In-Reply-To: <9118.1200158125@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox