restore database with schema: owner schema must have superuser privileges?

From: Pedro Salazar <pedro-b-salazar(at)ptinovacao(dot)pt>
To: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: restore database with schema: owner schema must have superuser privileges?
Date: 2003-04-21 08:55:00
Message-ID: 1050915300.1050.15.camel@vitoria.intra.cet.pt
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

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.
--
PS
pedro-b-salazar(at)ptinovacao(dot)pt
PGP:0E129E31D803BC61

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Cristina Surroca 2003-04-21 09:10:16 Re: Sequence scans on indexed row
Previous Message John M. Layman 2003-04-21 05:38:11 trouble migrating large objects from 7.1.3 to 7.3.2