Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 0C7AF9FB987 for ; Fri, 22 Jun 2007 18:58:43 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 06654-02 for ; Fri, 22 Jun 2007 18:58:35 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 05AF49FB6F8 for ; Fri, 22 Jun 2007 18:58:38 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.1/8.14.1) with ESMTP id l5MLwbQ7028404; Fri, 22 Jun 2007 17:58:37 -0400 (EDT) To: jef peeraer cc: pgsql-general@postgresql.org Subject: Re: permission denied for schema In-reply-to: <467C3821.7080306@telenet.be> References: <467C3821.7080306@telenet.be> Comments: In-reply-to jef peeraer message dated "Fri, 22 Jun 2007 22:59:13 +0200" Date: Fri, 22 Jun 2007 17:58:37 -0400 Message-ID: <28403.1182549517@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/1366 X-Sequence-Number: 116189 jef peeraer writes: > i get this when i try to insert a record into a table. all permissions / > privileges seems ok, but probably i missed something. i am running a > 8.1.3 on linux. > registratie=> INSERT INTO clienten > (anoniem,geslacht,leeftijd,origine,team_id,hulpverlener_id) VALUES > ('true','45','58','864','30','221'); > ERROR: permission denied for schema deterp > CONTEXT: SQL statement "SELECT 1 FROM ONLY "deterp"."teams" x WHERE > "id" = $1 FOR SHARE OF x" That's a foreign-key check, which is supposed to be done as the owner of the table. You did not show us who owns table clienten, but I think that role must be missing the intended(?) membership in deterp_group. regards, tom lane