From: | Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com> |
---|---|
To: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, zam6ak(at)gmail(dot)com |
Cc: | "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org> |
Subject: | Re: BUG #14724: Unable to revoke CREATE privileges on public schema |
Date: | 2017-06-30 21:20:21 |
Message-ID: | 287670d7-5086-21a7-a0c6-ffced377ac2b@2ndquadrant.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On 6/30/17 17:14, David G. Johnston wrote:
> -- 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"
>
>
> Query returned successfully with no result in 16 msec.
>
>
> https://www.postgresql.org/docs/9.6/static/sql-grant.html.
>
> "No privileges are granted to PUBLIC by default on tables, columns,
> schemas or tablespaces."
>
> You've been correctly warned that you've attempted to revoke a privilege
> that doesn't exist.
The "public" schema does by default have privileges, and the above
commands do work for me. Maybe there is some silly stuff going on in
the template databases.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2017-06-30 21:30:28 | Re: BUG #14724: Unable to revoke CREATE privileges on public schema |
Previous Message | David G. Johnston | 2017-06-30 21:14:36 | Re: BUG #14724: Unable to revoke CREATE privileges on public schema |