pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Pedro Salazar <pedro-b-salazar@ptinovacao.pt>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: restore database with schema: owner schema must have superuser privileges?
Date: Mon, 21 Apr 2003 09:50:17 -0400
Message-ID: <28102.1050933017@sss.pgh.pa.us> (raw)
In-Reply-To: <1050915300.1050.15.camel@vitoria.intra.cet.pt>
References: <1050915300.1050.15.camel@vitoria.intra.cet.pt>

Pedro Salazar <pedro-b-salazar@ptinovacao.pt> writes:
> 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!

You don't need superuser privs to create a schema, only CREATE privs on
the database.  Why would you have revoked CREATE-schema privs from the
database owner??  Seems downright weird.

pg_dump does have some known problems with situations where a
previously-held right has been revoked.  I guess this is another one for
the to-do list.

			regards, tom lane




view thread (3+ messages)  latest in thread

Message-ID: <28102.1050933017@sss.pgh.pa.us>
Permalink:  ../28102.1050933017@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28102.1050933017@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pedro-b-salazar@ptinovacao.pt
  Subject: Re: restore database with schema: owner schema must have superuser privileges?
  In-Reply-To: <28102.1050933017@sss.pgh.pa.us>
  References: <1050915300.1050.15.camel@vitoria.intra.cet.pt> <28102.1050933017@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