Re: public schema grants to PUBLIC role

2023-03-09 Thread Dominique Devienne
On Thu, Mar 9, 2023 at 2:13 PM Laurenz Albe wrote: Hi, On Thu, 2023-03-09 at 10:34 +0100, Dominique Devienne wrote: > > Hi. I've recently realized via a post (or article?) from Laurenz that > the PUBLIC > > role has CREATE privilege on the 'public' schema by default (see query > below). > > I gu

Re: public schema grants to PUBLIC role

2023-03-09 Thread Laurenz Albe
On Thu, 2023-03-09 at 10:34 +0100, Dominique Devienne wrote: > Hi. I've recently realized via a post (or article?) from Laurenz that the > PUBLIC > role has CREATE privilege on the 'public' schema by default (see query below). > I guess it can't be avoided? It can be avoided if you connect to "te

Re: public schema grants to PUBLIC role

2023-03-09 Thread Christoph Moench-Tegeder
## Dominique Devienne (ddevie...@gmail.com): > Hi. I've recently realized via a post (or article?) from Laurenz that the > PUBLIC role has CREATE privilege on the 'public' schema by default (see > query below). I guess it can't be avoided? You could just use PostgreSQL 15: https://www.postgresql.

public schema grants to PUBLIC role

2023-03-09 Thread Dominique Devienne
Hi. I've recently realized via a post (or article?) from Laurenz that the PUBLIC role has CREATE privilege on the 'public' schema by default (see query below). I guess it can't be avoided? OK, then I'll REVOKE that privilege when creating a new DB. Like I already revoked the default CONNECT to PUB