Re: permission denied for schema

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: jef peeraer <jef(dot)peeraer(at)telenet(dot)be>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: permission denied for schema
Date: 2007-06-22 21:58:37
Message-ID: 28403.1182549517@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

jef peeraer <jef(dot)peeraer(at)telenet(dot)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.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2007-06-22 22:05:52 Re: [JDBC] creating temporary table PostgreSql 8.1 and iBatis 2.3
Previous Message Richard Broersma Jr 2007-06-22 21:42:39 Re: Possible bug (or I don't understand how foreign keys should work with partitions)