From: mkresse@slyde.in-berlin.de
To: pgsql-sql@postgreSQL.org
Subject: Re: Foreign keys and access privileges
Date: Fri, 19 May 2000 00:19:36 +0200
Message-ID: <200005182220.e4IMKvT32127@einhorn.in-berlin.de> (raw)
In-Reply-To: <23410.958661686@sss.pgh.pa.us>
References: <200005181057.e4IAvXR09871@einhorn.in-berlin.de>
> mkresse@slyde.in-berlin.de writes:
> > Now, with Postgres 7.0 RC1, when some user (not the owner of the
> > db, of course) tries to update, change or insert anything into
> > choice, he gets an error message that says 'Permission denied' for
> > table users.
>
> IIRC this is a known bug in RC1 (permissions not handled correctly
> for foreign key references). Have you tried it in 7.0 final?
Yes, it's still there (in 7.0). Try the following two tables:
create table a(x integer primary key);
create table b(y integer references a);
grant all on b to public;
When someone else than the owner tries an insert into b, he gets
a 'Permission denied'. For the operation to be successful, he needs
to have select and update privileges on a.
Ciao,
Martin
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-sql@postgresql.org
Cc: mkresse@slyde.in-berlin.de
Subject: Re: Foreign keys and access privileges
In-Reply-To: <200005182220.e4IMKvT32127@einhorn.in-berlin.de>
References: <200005181057.e4IAvXR09871@einhorn.in-berlin.de> <200005182220.e4IMKvT32127@einhorn.in-berlin.de>
* 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