Re: BUG #14724: Unable to revoke CREATE privileges on public schema

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: zam6ak(at)gmail(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #14724: Unable to revoke CREATE privileges on public schema
Date: 2017-06-30 21:30:28
Message-ID: 19968.1498858228@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

zam6ak(at)gmail(dot)com writes:
> -- create a test db
> CREATE DATABASE test
> WITH OWNER = postgres
> ENCODING = 'UTF8';

> -- log in as 'postres' and do:
> REVOKE CREATE ON SCHEMA public FROM public;
> WARNING: no privileges could be revoked for "public"

Works for me. Maybe your "postgres" isn't a superuser?
I can duplicate the above if I try it with a non-superuser
database owner. (And no, that is not a bug, it's just
how it works. Being owner of a DB doesn't in itself give
you ownership of contained objects.)

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2017-06-30 21:36:50 Re: Re: BUG #14718: unable to update table with identity column GENERATED ALWAYS
Previous Message Peter Eisentraut 2017-06-30 21:20:21 Re: BUG #14724: Unable to revoke CREATE privileges on public schema