Re: PostgreSQL BugTool Submission
От | Stephan Szabo |
---|---|
Тема | Re: PostgreSQL BugTool Submission |
Дата | |
Msg-id | Pine.BSF.4.10.10008221409590.22911-100000@megazone23.bigpanda.com обсуждение исходный текст |
Ответ на | PostgreSQL BugTool Submission (pgsql-bugs@postgresql.org) |
Список | pgsql-bugs |
On Tue, 22 Aug 2000 pgsql-bugs@postgresql.org wrote: > James Aspnes (aspnes@cs.yale.edu) reports a bug with a severity of 2 > The lower the number the more severe it is. > > Short Description > checking foreign keys requires write access > > Long Description > In version 7.0.2, create tables A and B where B has a foreign > key reference to A. Grant user X insert access on B but only > select access on A. Attempts by X to insert into B will fail > with an access error on A, even though X is allowed to read A > (and thus verify that the foreign key constraint is not violated.)[B Yes. This is a known issue due to getting row level locks on rows in A with SELECT ... FOR UPDATE which requires update permission (and presumably select as well). For more information, check out the -hackers archive over the last couple of months. The current workaround is somewhat painful, and involves giving update permission and using a trigger to actually prevent unwanted changes.
В списке pgsql-bugs по дате отправления: