Re: permission denied for relation - Mailing list pgsql-general

From Andreas Kretschmer
Subject Re: permission denied for relation
Date
Msg-id 20070101153412.GA11072@KanotixBox
Whole thread Raw
In response to permission denied for relation  (Armon Ezra <armon@canaan.co.il>)
List pgsql-general
Armon Ezra <armon@canaan.co.il> schrieb:

> while browsing  a web site (which I am trying to handle),  I get an error
> message like this:
> *" Warning*: pg_query() [function.pg-query]: Query failed: ERROR:
> permission denied for relation  -table name-   in....... on line 45   "
> I believe it has a connection to upgrading to postgresql8 , but I am not
> sure about it.
> Can anyone advice what to do about it.  it wasn't there before.

Without knowing more details it is hard to help you. Check, if the user
has the necessary rights on this table. You can use psql for this, \dp
<tablename> or \z <tablename> show all information.

You can assign rights with GRANT.


Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect.                              (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly."    (unknow)
Kaufbach, Saxony, Germany, Europe.              N 51.05082°, E 13.56889°

pgsql-general by date:

Previous
From: Armon Ezra
Date:
Subject: permission denied for relation
Next
From: Adrian Klaver
Date:
Subject: Re: Installing support for python on windows