pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hisahiro Kauchi <hkauchi@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #14613: Referencing foreign key needs privileges of table owner?
Date: Thu, 6 Apr 2017 12:32:05 +0900
Message-ID: <70a46d27-8ae3-c0bb-5645-a2e070dfcc81@gmail.com> (raw)
In-Reply-To: <14343.1491447636@sss.pgh.pa.us>
References: <20170406020941.25934.30410@wrigleys.postgresql.org>
	<14343.1491447636@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>


On 2017/04/06 12:00, Tom Lane wrote:
>> revoke all on schema public from public; // To prevent creation of
>> objects.
>
> You realize that that's much more draconian than needed to prevent
> creation of objects?  In particular, you've left user1 unable to
> reference the table it owns, which hardly seems like a useful
> arrangement.

Yes, I had done too much... :(
But I thought user2 had enough permissions, so I asked a question.

> This is not a bug.  That foreign key check query is executed as the owner
> of table1.  If it were not, you'd probably be complaining about some
> other permissions problem.

I understood.

Thanks!


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (3+ messages)

Message-ID: <70a46d27-8ae3-c0bb-5645-a2e070dfcc81@gmail.com>
Permalink:  ../70a46d27-8ae3-c0bb-5645-a2e070dfcc81@gmail.com/
Also on:    postgresql.org/message-id/70a46d27-8ae3-c0bb-5645-a2e070dfcc81@gmail.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: hkauchi@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: BUG #14613: Referencing foreign key needs privileges of table owner?
  In-Reply-To: <70a46d27-8ae3-c0bb-5645-a2e070dfcc81@gmail.com>
  References: <20170406020941.25934.30410@wrigleys.postgresql.org> <14343.1491447636@sss.pgh.pa.us> <70a46d27-8ae3-c0bb-5645-a2e070dfcc81@gmail.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