Re: BUG #17534: 'tablespace' option crushes 'create database' query with 'permission denied' message - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #17534: 'tablespace' option crushes 'create database' query with 'permission denied' message
Date
Msg-id 2699999.1656439696@sss.pgh.pa.us
Whole thread Raw
In response to BUG #17534: 'tablespace' option crushes 'create database' query with 'permission denied' message  (PG Bug reporting form <noreply@postgresql.org>)
List pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes:
> If some user with createdb privilege would try to create database with
> 'tablespace = pg_default' option, query will fail with ERROR:  42501
> But same query without  'tablespace = pg_default' option would work fine,
> and new database will be created at pg_default tablespace as expected.

I do not think this is a bug.  The default tablespace is determined
by (copied from) the template database you use, and a user without
any tablespace-related privileges shouldn't be able to override that.

            regards, tom lane



pgsql-bugs by date:

Previous
From: David Johansen
Date:
Subject: Re: Auto-vacuum timing out and preventing connections
Next
From: Jeff Janes
Date:
Subject: Re: Auto-vacuum timing out and preventing connections