pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Richard Hayward <richard@tortoise.demon.co.uk>
Cc: pgsql-admin@postgresql.org
Subject: Re: who can create schema?
Date: Tue, 31 May 2005 14:41:59 -0400
Message-ID: <16924.1117564919@sss.pgh.pa.us> (raw)
In-Reply-To: <icgg91lioonncfun1arhc8rru17vuv95bv@4ax.com>
References: <icgg91lioonncfun1arhc8rru17vuv95bv@4ax.com>

Richard Hayward <richard@tortoise.demon.co.uk> writes:
> I'm trying to investigate why users can create new schema within a
> database, without being explicitly being granted create permission on
> that database.

By default, they can't.  Perhaps you granted create permission on the
database to PUBLIC?  Also, are you sure the users in question are
not superusers?

> I cant find a command that lists what privileges users have been
> granted within a database. Can they create new schema or not?

There doesn't seem to be a psql backslash command that shows permissions
on databases; you'd need to look directly at pg_database, eg

	select datname, datacl from pg_database;

			regards, tom lane



view thread (3+ messages)

Message-ID: <16924.1117564919@sss.pgh.pa.us>
Permalink:  ../16924.1117564919@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/16924.1117564919@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, richard@tortoise.demon.co.uk
  Subject: Re: who can create schema?
  In-Reply-To: <16924.1117564919@sss.pgh.pa.us>
  References: <icgg91lioonncfun1arhc8rru17vuv95bv@4ax.com> <16924.1117564919@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