Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 1A3969FB77B for ; Fri, 22 Jun 2007 19:13:11 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 52922-04 for ; Fri, 22 Jun 2007 19:13:03 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id B41FE9FB510 for ; Fri, 22 Jun 2007 19:13:07 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from adicia.telenet-ops.be (adicia.telenet-ops.be [195.130.132.56]) by svr4.postgresql.org (Postfix) with ESMTP id C790D5AF02A for ; Fri, 22 Jun 2007 22:13:06 +0000 (GMT) Received: from localhost (localhost.localdomain [127.0.0.1]) by adicia.telenet-ops.be (Postfix) with SMTP id C1BD1230091 for ; Sat, 23 Jun 2007 00:13:03 +0200 (CEST) Received: from mordor.objectit.be (dD5E02CF1.access.telenet.be [213.224.44.241]) by adicia.telenet-ops.be (Postfix) with ESMTP id B3958230090 for ; Sat, 23 Jun 2007 00:13:03 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by mordor.objectit.be (Postfix) with ESMTP id 7905E5B5B5 for ; Sat, 23 Jun 2007 00:13:03 +0200 (CEST) Message-ID: <467C496F.1070309@telenet.be> Date: Sat, 23 Jun 2007 00:13:03 +0200 From: jef peeraer User-Agent: Thunderbird 1.5.0.9 (X11/20061206) MIME-Version: 1.0 To: pgsql-general@postgresql.org Subject: Re: permission denied for schema References: <467C3821.7080306@telenet.be> <28403.1182549517@sss.pgh.pa.us> In-Reply-To: <28403.1182549517@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.186 tagged_above=0 required=5 tests=AWL=0.050, BAYES_50=0.001, FORGED_RCVD_HELO=0.135 X-Spam-Level: X-Archive-Number: 200706/1368 X-Sequence-Number: 116191 Tom Lane schreef: > 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. registratie=# \z deterp.clienten; Access privileges for database "registratie" Schema | Name | Type | Access privileges --------+----------+-------+------------------------------------------ deterp | clienten | table | {jpe=arwdxt/jpe,deterp_group=arwdxt/jpe} (1 row) > > regards, tom lane > > ---------------------------(end of broadcast)--------------------------- > TIP 5: don't forget to increase your free space map settings >