Received: from sss2.sss.pgh.pa.us (sss.pgh.pa.us [209.114.166.2]) by hub.org (8.9.3/8.9.3) with ESMTP id NAA12701; Sun, 21 May 2000 13:12:40 -0400 (EDT) (envelope-from tgl@sss.pgh.pa.us) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss2.sss.pgh.pa.us (8.9.3/8.9.3) with ESMTP id NAA09736; Sun, 21 May 2000 13:12:34 -0400 (EDT) To: Peter Eisentraut cc: Jan Wieck , PostgreSQL Development , pgsql-sql@postgresql.org Subject: Re: Foreign keys breaks tables permissions In-reply-to: References: Comments: In-reply-to Peter Eisentraut message dated "Sun, 21 May 2000 18:45:20 +0200" Date: Sun, 21 May 2000 13:12:34 -0400 Message-ID: <9733.958929154@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200005/94 Peter Eisentraut writes: > Tom Lane writes: >> This is perhaps the least undesirable of the choices we have, but it's >> still a security hole. > The reason this concerns me is that requiring update rights on the > referenced table eliminates much the benefit of foreign keys from an > administration point of view: If the primary keys can be updated freely, > they no longer constrain the data in the referencing table effectively. > I suppose we'll have to live with that for now but I'd suggest that it be > put on the TODO list somewhere. What we need to do about it is implement the separate REFERENCES right as specified by SQL92, and then fix FK support to require that right rather than UPDATE... regards, tom lane