Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id C4C252E0135 for ; Sat, 12 Jan 2008 13:15:29 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 68774-07 for ; Sat, 12 Jan 2008 13:15:25 -0400 (AST) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 39C242E31B3 for ; Sat, 12 Jan 2008 13:15:26 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id m0CHFPgM009119; Sat, 12 Jan 2008 12:15:25 -0500 (EST) To: Andreas Haumer cc: pgsql-admin@postgresql.org Subject: Re: Restore dump into different databases/owners In-reply-to: <4788EA09.4050808@xss.co.at> References: <4788B647.1050600@xss.co.at> <4788EA09.4050808@xss.co.at> Comments: In-reply-to Andreas Haumer message dated "Sat, 12 Jan 2008 17:25:45 +0100" Date: Sat, 12 Jan 2008 12:15:25 -0500 Message-ID: <9118.1200158125@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200801/132 X-Sequence-Number: 27906 Andreas Haumer 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