From: | "Nigel J(dot) Andrews" <nandrews(at)investsystems(dot)co(dot)uk> |
---|---|
To: | Barker <barkerds(at)snybufaf(dot)buffalostate(dot)edu> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Warning: PostgreSQL query failed: ERROR: [my_tabel]: |
Date: | 2002-08-09 12:51:36 |
Message-ID: | Pine.LNX.4.21.0208091347300.3235-100000@ponder.fairway2k.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On Fri, 9 Aug 2002, Barker wrote:
>
> Yes, the webserver is apache, and read/write permission is granted
> as seen below.
>
> The example below shows that the permission-denied problem happens
> in the Unix mode too for the apache user, but not for the postgres
> superuser.
>
> --------------------------------------------------------
> [root(at)linux5 octave]# psql --version
> psql (PostgreSQL) 7.2.1
> ...
>
> [root(at)linux5 octave]# psql -U apache octave
> Welcome to psql, the PostgreSQL interactive terminal.
> ...
>
> octave=> \z
> Access privileges for database "octave"
> Table | Access privileges
> -------+--------------------------------
> form | {=,postgres=arwdRxt,apache=rw}
> use | {=,postgres=arwdRxt,apache=rw}
> (2 rows)
>
> octave=> INSERT INTO use VALUES ('date', 'time', 'ip', 'port', 'Mozilla'
> );
> ERROR: use: Permission denied.
>
Are you sure used GRANT correctly. I've checked on a fresh table and when I:
GRANT SELECT,INSERT ON fresh_table TO a_user;
I get \z showing:
fresh_table | {=,a_user=ar,the_creator=arwdRxt}
and a_user can happily insert.
Another possibility could be that there's a trigger doing something that is
giving rise to that error.
--
Nigel J. Andrews
Director
---
Logictree Systems Limited
Computer Consultants
From | Date | Subject | |
---|---|---|---|
Next Message | Jarosław Nozderko | 2002-08-09 13:05:26 | Stored procedures returning rowsets |
Previous Message | Barker | 2002-08-09 12:39:47 | Re: Warning: PostgreSQL query failed: ERROR: [my_tabel]: |