Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: permission denied for schema


  • From: jef peeraer <jef(dot)peeraer(at)telenet(dot)be>
  • To: pgsql-general(at)postgresql(dot)org
  • Subject: Re: permission denied for schema
  • Date: Sat, 23 Jun 2007 00:13:03 +0200
  • Message-id: <467C496F(dot)1070309(at)telenet(dot)be>

Tom Lane schreef:
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.

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





Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group