Re: Warning: PostgreSQL query failed: ERROR: [my_tabel]: - Mailing list pgsql-general

From frbn
Subject Re: Warning: PostgreSQL query failed: ERROR: [my_tabel]:
Date
Msg-id 3D53BF6B.5080902@efbs-seafrigo.fr
Whole thread Raw
In response to Re: Warning: PostgreSQL query failed: ERROR: [my_tabel]:  (Barker <barkerds@snybufaf.buffalostate.edu>)
List pgsql-general
Barker a écrit:
> 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@linux5 octave]# psql --version
> psql (PostgreSQL) 7.2.1
> ...
>
> [root@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.

apache needs to have the "a"ppend privilege on the table "use"

nd: "w"rite privilege is for updates/deletes


pgsql-general by date:

Previous
From: Jarosław Nozderko
Date:
Subject: Stored procedures returning rowsets
Next
From: "Martina Mostert"
Date:
Subject: Re: C-function and query