From: Raul Chirea <raul@brahms.ro>
To: pgsql-bugs@postgresql.org
To: pgsql-sql@postgresql.org
Subject: Foreign keys breaks tables permissions
Date: Wed, 12 Apr 2000 05:49:44 +0300
Message-ID: <38F3E447.6C87FDDE@brahms.ro> (raw)
Hi,
If one does:
create table master (
id integer not null,
primary key (id)
);
create table detail (
id integer not null,
master_id integer not null,
primary key (id),
foreign key (master_id) references master (id)
);
insert into master (id) values (1);
grant select on master to a_user;
grant select, insert, update, delete on detail to a_user;
then if login as "a_user" and does:
insert into detail (id, master_id) values (1, 10);
this will result in: "ERROR: master: Permission denied".
This seems a bug to me ? Isn't it ?
Regards,
Raul Chirea.
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: raul@brahms.ro, pgsql-bugs@postgresql.org
Subject: Re: Foreign keys breaks tables permissions
In-Reply-To: <38F3E447.6C87FDDE@brahms.ro>
References: <38F3E447.6C87FDDE@brahms.ro>
* 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