Thread: permission denied for relation

permission denied for relation

From
Armon Ezra
Date:
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.
thanks
Armon

Re: permission denied for relation

From
Andreas Kretschmer
Date:
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°