pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: akdmnnakdm@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #17534: 'tablespace' option crushes 'create database' query with 'permission denied' message
Date: Tue, 28 Jun 2022 14:08:16 -0400
Message-ID: <2699999.1656439696@sss.pgh.pa.us> (raw)
In-Reply-To: <17534-fcb8fb4c81cd17b6@postgresql.org>
References: <17534-fcb8fb4c81cd17b6@postgresql.org>

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





view thread (2+ messages)

Message-ID: <2699999.1656439696@sss.pgh.pa.us>
Permalink:  ../2699999.1656439696@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2699999.1656439696@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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, akdmnnakdm@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #17534: 'tablespace' option crushes 'create database' query with 'permission denied' message
  In-Reply-To: <2699999.1656439696@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