Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id B34C99FB6A6 for ; Fri, 22 Jun 2007 18:19:02 -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 64922-04 for ; Fri, 22 Jun 2007 18:18:55 -0300 (ADT) X-Greylist: delayed 00:19:39.929465 by SQLgrey-1.7.5 Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 190F69FB6EB for ; Fri, 22 Jun 2007 18:18:57 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from hoboe1bl1.telenet-ops.be (hoboe1bl1.telenet-ops.be [195.130.137.72]) by svr4.postgresql.org (Postfix) with ESMTP id 02DD25AF5CE for ; Fri, 22 Jun 2007 20:59:16 +0000 (GMT) Received: from localhost (localhost.localdomain [127.0.0.1]) by hoboe1bl1.telenet-ops.be (Postfix) with SMTP id E52E7D403E for ; Fri, 22 Jun 2007 22:59:13 +0200 (CEST) Received: from mordor.objectit.be (dD5E02CF1.access.telenet.be [213.224.44.241]) by hoboe1bl1.telenet-ops.be (Postfix) with ESMTP id C162AD4034 for ; Fri, 22 Jun 2007 22:59:13 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by mordor.objectit.be (Postfix) with ESMTP id B22D75B57F for ; Fri, 22 Jun 2007 22:59:13 +0200 (CEST) Message-ID: <467C3821.7080306@telenet.be> Date: Fri, 22 Jun 2007 22:59:13 +0200 From: jef peeraer User-Agent: Thunderbird 1.5.0.9 (X11/20061206) MIME-Version: 1.0 To: pgsql-general@postgresql.org Subject: permission denied for schema 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.136 tagged_above=0 required=5 tests=BAYES_50=0.001, FORGED_RCVD_HELO=0.135 X-Spam-Level: X-Archive-Number: 200706/1361 X-Sequence-Number: 116184 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" registratie=> \dn List of schemas Name | Owner --------------------+--------------- dekempen | jpe deterp | jpe information_schema | postgres mozaiek | mozaiek_admin pg_catalog | postgres pg_toast | postgres public | postgres testsaw | testsaw_admin (8 rows) registratie=> \dn+ List of schemas Name | Owner | Access privileges | Description --------------------+---------------+--------------------------------------------------------------------------------------------------------------+---------------------------------- dekempen | jpe | {jpe=UC/jpe,cawdekempen=UC/jpe} | deterp | jpe | {jpe=UC/jpe,deterp_group=UC/jpe,terp_user=UC/jpe} | information_schema | postgres | {postgres=UC/postgres,=U/postgres} | mozaiek | mozaiek_admin | {mozaiek_admin=UC/mozaiek_admin,jpe=UC/mozaiek_admin,mozaiek_user=UC/mozaiek_admin,mozaiek=UC/mozaiek_admin} | pg_catalog | postgres | {postgres=UC/postgres,=U/postgres} | System catalog schema pg_toast | postgres | | Reserved schema for TOAST tables public | postgres | {postgres=UC/postgres,=UC/postgres,deterp_group=U/postgres,cawdekempen=U/postgres} | Standard public schema testsaw | testsaw_admin | {testsaw_admin=UC/testsaw_admin,jpe=UC/testsaw_admin,testsaw_user=UC/testsaw_admin,testsaw=UC/testsaw_admin} | (8 rows) registratie=> \d clienten Table "deterp.clienten" Column | Type | Modifiers -----------------+----------+------------------------------------------------------- id | integer | not null default nextval('clienten_id_seq'::regclass) anoniem | boolean | not null default false naam | text | voornamen | text | geslacht | smallint | leeftijd | smallint | geboortedatum | date | origine | smallint | team_id | integer | hulpverlener_id | integer | Indexes: "pk_deterp_clienten" PRIMARY KEY, btree (id) Foreign-key constraints: "fk_clienten_geslacht" FOREIGN KEY (geslacht) REFERENCES lijst_items(score) ON UPDATE RESTRICT ON DELETE RESTRICT "fk_clienten_hv_id" FOREIGN KEY (hulpverlener_id) REFERENCES gebruikers(id) ON UPDATE RESTRICT ON DELETE RESTRICT "fk_clienten_leeftijd" FOREIGN KEY (leeftijd) REFERENCES lijst_items(score) ON UPDATE RESTRICT ON DELETE RESTRICT "fk_deterp_clienten_team_id" FOREIGN KEY (team_id) REFERENCES teams(id) ON UPDATE RESTRICT ON DELETE RESTRICT registratie=> \z clienten_id_seq Access privileges for database "registratie" Schema | Name | Type | Access privileges --------+-----------------+----------+-------------------------------------------- deterp | clienten_id_seq | sequence | {jpe=arwdRxt/jpe,deterp_group=arwdRxt/jpe} (1 row) registratie=> \dg List of roles Role name | Superuser | Create role | Create DB | Connections | Member of ----------------+-----------+-------------+-----------+-------------+---------------- cawdekempen | no | no | no | no limit | db_admin | yes | yes | yes | no limit | dekempen_admin | no | no | no | no limit | {cawdekempen} dekempen_user | no | no | no | no limit | {cawdekempen} deterp | no | no | no | no limit | deterp_group | no | no | no | no limit | deterp_resp | no | no | no | no limit | jpe | yes | yes | yes | no limit | {mozaiek} liesbet | no | no | no | no limit | {cawdekempen} mozaiek | no | no | no | no limit | mozaiek_admin | no | yes | yes | no limit | {mozaiek} mozaiek_user | no | no | no | no limit | {mozaiek} postgres | yes | yes | yes | no limit | terp_admin | no | no | no | no limit | {deterp_group} terp_user | no | no | no | no limit | {deterp_group} testsaw | no | no | no | no limit | testsaw_admin | no | yes | yes | no limit | {testsaw} testsaw_user | no | no | no | no limit | {testsaw} tom | no | no | yes | no limit | tomdec | no | yes | yes | no limit | (20 rows) registratie=> \du List of roles Role name | Superuser | Create role | Create DB | Connections | Member of ----------------+-----------+-------------+-----------+-------------+---------------- cawdekempen | no | no | no | no limit | db_admin | yes | yes | yes | no limit | dekempen_admin | no | no | no | no limit | {cawdekempen} dekempen_user | no | no | no | no limit | {cawdekempen} deterp | no | no | no | no limit | deterp_group | no | no | no | no limit | deterp_resp | no | no | no | no limit | jpe | yes | yes | yes | no limit | {mozaiek} liesbet | no | no | no | no limit | {cawdekempen} mozaiek | no | no | no | no limit | mozaiek_admin | no | yes | yes | no limit | {mozaiek} mozaiek_user | no | no | no | no limit | {mozaiek} postgres | yes | yes | yes | no limit | terp_admin | no | no | no | no limit | {deterp_group} terp_user | no | no | no | no limit | {deterp_group} testsaw | no | no | no | no limit | testsaw_admin | no | yes | yes | no limit | {testsaw} testsaw_user | no | no | no | no limit | {testsaw} tom | no | no | yes | no limit | tomdec | no | yes | yes | no limit | (20 rows) r