Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id EE6129FB560 for ; Fri, 22 Jun 2007 20:56:24 -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 77404-04 for ; Fri, 22 Jun 2007 20:56:16 -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 6B8359FB541 for ; Fri, 22 Jun 2007 20:56:21 -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 l5MNuKkD029800; Fri, 22 Jun 2007 19:56:20 -0400 (EDT) To: jef peeraer cc: pgsql-general@postgresql.org Subject: Re: permission denied for schema In-reply-to: <467C496F.1070309@telenet.be> References: <467C3821.7080306@telenet.be> <28403.1182549517@sss.pgh.pa.us> <467C496F.1070309@telenet.be> Comments: In-reply-to jef peeraer message dated "Sat, 23 Jun 2007 00:13:03 +0200" Date: Fri, 22 Jun 2007 19:56:19 -0400 Message-ID: <29799.1182556579@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/1374 X-Sequence-Number: 116197 jef peeraer writes: > Tom Lane schreef: >> 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} Hmm. This doesn't actually say so, but I think that jpe must be the owner of clienten, and he's also the owner of the schema. Which makes the failure really darn odd. I tried to reproduce the situation on 8.1.9 and couldn't see any problem. I do not see anything in the 8.1 CVS history that looks related, but it's slightly possible this is a bug that's fixed between 8.1.3 and 8.1.9 (and even if that is not the case, you really really ought to update anyway). Would you see if the problem recurs if you do a pg_dump -s and load the schema into a fresh database? If it doesn't, perhaps there is some weird corruption in the ACL entries. If it is reproducible, please post the complete schema (or enough of it to reproduce the problem) to pgsql-bugs. regards, tom lane