pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: 断桥烟雨三两月 <1310659646@qq.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: pgsql-bugs <pgsql-bugs@lists.postgresql.org>
Subject: 回复: report bug
Date: Thu, 30 Apr 2020 23:45:11 +0800
Message-ID: <tencent_A21DA6DC3396581C4A4E899AFCF9FE12FE06@qq.com> (raw)
In-Reply-To: <20119.1588254422@sss.pgh.pa.us>
References: <tencent_957562A3285F2599F27FFBE2F86E9885CF08@qq.com>
	<CAKFQuwbeAyA3N6OvQ4rzbka6NLpmAHbaGdzEXEr8v+KkRmeWYw@mail.gmail.com>
	<20119.1588254422@sss.pgh.pa.us>

I got it,thanks




------------------ 原始邮件 ------------------
发件人: "Tom Lane"<tgl@sss.pgh.pa.us>; 
发送时间: 2020年4月30日(星期四) 晚上9:47
收件人: "David G. Johnston"<david.g.johnston@gmail.com>; 
抄送: "断桥烟雨三两月"<1310659646@qq.com>; "pgsql-bugs"<pgsql-bugs@lists.postgresql.org>; 
主题: Re: report bug



"David G. Johnston" <david.g.johnston@gmail.com> writes:
>> So, why a role with NOCREATEDB can create a role who can create DB?

> Cannot answer why but given it is documented as working this way this isn’t
> a bug.

Yeah, that's deliberate.  CREATEROLE is intended to be sufficient
privilege for all day-to-day user/role administration, so that you
don't have to use a superuser bit for that.  The only restriction
on it is you can't manufacture new superuser roles ... but you
definitely can manufacture roles that have other privileges you
don't have yourself.  In particular, a CREATEROLE role can issue
GRANTs for privileges it doesn't have itself; so the behavior with
respect to CREATEDB isn't different from that.

			regards, tom lane

Message-ID: <tencent_A21DA6DC3396581C4A4E899AFCF9FE12FE06@qq.com>
Permalink:  ../tencent_A21DA6DC3396581C4A4E899AFCF9FE12FE06@qq.com/
Also on:    postgresql.org/message-id/tencent_A21DA6DC3396581C4A4E899AFCF9FE12FE06@qq.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: 1310659646@qq.com, tgl@sss.pgh.pa.us, david.g.johnston@gmail.com
  Subject: Re: 回复: report bug
  In-Reply-To: <tencent_A21DA6DC3396581C4A4E899AFCF9FE12FE06@qq.com>
  References: <tencent_957562A3285F2599F27FFBE2F86E9885CF08@qq.com> <CAKFQuwbeAyA3N6OvQ4rzbka6NLpmAHbaGdzEXEr8v+KkRmeWYw@mail.gmail.com> <20119.1588254422@sss.pgh.pa.us> <tencent_A21DA6DC3396581C4A4E899AFCF9FE12FE06@qq.com>

* 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