X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id AE9DD475A80 for ; Mon, 21 Apr 2003 04:57:02 -0400 (EDT) Received: from exchange_geral.intra.cet.pt (unknown [194.65.138.11]) by postgresql.org (Postfix) with ESMTP id 6BDD9474E42 for ; Mon, 21 Apr 2003 04:56:56 -0400 (EDT) Received: from [10.112.80.105] (10.112.80.105 [10.112.80.105]) by exchange_geral.intra.cet.pt with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 205CMATG; Mon, 21 Apr 2003 10:07:00 +0100 Subject: restore database with schema: owner schema must have superuser privileges? From: Pedro Salazar To: pgsql-admin Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-fYgnYTRVanIWGrBWx+6Q" Organization: Portugal Telecom Inovação, S.A. Message-Id: <1050915300.1050.15.camel@vitoria.intra.cet.pt> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 Date: 21 Apr 2003 09:55:00 +0100 X-Spam-Status: No, hits=-16.3 required=5.0 tests=BAYES_10,HEADER_8BITS,PGP_SIGNATURE_2,USER_AGENT_XIMIAN autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/284 X-Sequence-Number: 8439 --=-fYgnYTRVanIWGrBWx+6Q Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Greetings, I have a database which has a schema owned by a user (with no superuser privileges). When restoring the dump file with my superuser database, the dump script connects with my owner user (which I created before), and tries to create the schema with that user, and of course it cannot do it, because my owner user hasn't super user privileges that permits create a schema! So, my question is, should the procedure to give temporary privileges of super user to the user that will be the owner of schema is a right procedure, or should the dump script provide to that operation be done with my super user database and only after that it would connect with the owner user? thanks, Pedro Salazar. --=20 PS pedro-b-salazar@ptinovacao.pt PGP:0E129E31D803BC61 --=-fYgnYTRVanIWGrBWx+6Q Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iD8DBQA+o7HkDhKeMdgDvGERAm52AJ9cfZiBei9Otw13Zd165y6u/TozbgCffNGy EOJjHEUNtN+u7iU5r7DNquI= =1dwT -----END PGP SIGNATURE----- --=-fYgnYTRVanIWGrBWx+6Q--