Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 899479FB514 for ; Sat, 23 Jun 2007 10:00:37 -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 72547-02 for ; Sat, 23 Jun 2007 10:00:22 -0300 (ADT) X-Greylist: delayed 14:47:28.005789 by SQLgrey-1.7.5 Received: from adicia.telenet-ops.be (adicia.telenet-ops.be [195.130.132.56]) by postgresql.org (Postfix) with ESMTP id C6D8A9FB4E9 for ; Sat, 23 Jun 2007 10:00:33 -0300 (ADT) Received: from localhost (localhost.localdomain [127.0.0.1]) by adicia.telenet-ops.be (Postfix) with SMTP id CBF262300BF for ; Sat, 23 Jun 2007 15:00:31 +0200 (CEST) Received: from mordor.objectit.be (dD5E02C91.access.telenet.be [213.224.44.145]) by adicia.telenet-ops.be (Postfix) with ESMTP id B8987230090 for ; Sat, 23 Jun 2007 15:00:31 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by mordor.objectit.be (Postfix) with ESMTP id 343615B65B for ; Sat, 23 Jun 2007 15:00:31 +0200 (CEST) Message-ID: <467D196E.3080002@telenet.be> Date: Sat, 23 Jun 2007 15:00:30 +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> <467C496F.1070309@telenet.be> <29799.1182556579@sss.pgh.pa.us> In-Reply-To: <29799.1182556579@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.457 tagged_above=0 required=5 tests=AWL=0.321, BAYES_50=0.001, FORGED_RCVD_HELO=0.135 X-Spam-Level: X-Archive-Number: 200706/1386 X-Sequence-Number: 116209 Tom Lane schreef: > 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). ok, i upgraded anywway to the latest stable one, also because i needed the 'drop table if exists' feature. it was indeed a foreign referenced table that was not owned by jpe. i must have overlooked it. thanks for you're time anyway. jef peeraer > > 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 > > ---------------------------(end of broadcast)--------------------------- > TIP 2: Don't 'kill -9' the postmaster >