pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: jef peeraer <jef.peeraer@telenet.be>
To: pgsql-general@postgresql.org
Subject: Re: permission denied for schema
Date: Sat, 23 Jun 2007 00:13:03 +0200
Message-ID: <467C496F.1070309@telenet.be> (raw)
In-Reply-To: <28403.1182549517@sss.pgh.pa.us>
References: <467C3821.7080306@telenet.be>
	<28403.1182549517@sss.pgh.pa.us>

Tom Lane schreef:
> jef peeraer <jef.peeraer@telenet.be> 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
> 




view thread (8+ messages)  latest in thread

Message-ID: <467C496F.1070309@telenet.be>
Permalink:  ../467C496F.1070309@telenet.be/
Also on:    postgresql.org/message-id/467C496F.1070309@telenet.be

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: jef.peeraer@telenet.be
  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>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox