try :
grant all on absence_jour_id_seq TO gddtest ;
http://www.pgexplorer.com
GUI Postgesql Tool
----- Original Message -----
From: "GRIMOIS Eric" <eric.grimois@cpam-cergypontoise.cnamts.fr>
To: <pgsql-sql@postgresql.org>
Sent: Tuesday, March 12, 2002 12:16 PM
Subject: [SQL] GRANT problem ?
> Hi
>
> I get a error message when i do an INSERT in a table (Absence_jour)
> containing a SERIAL field :
>
> ERROR: absence_jour_id_seq.nextval: you don't have permissions to set
> sequence absence_jour_id_seq
>
> It fails (with PSQL and ODBC) when i connect as a simple user (gddtest),
but
> i granted all privileges on the table for him
> with the command GRANT ALL PRIVILEGES ON Absence_jour TO gddtest !
> It works when i connect as a superuser (the user who created the table).
>
> Hints (maybe) : PostgreSQL 7.2 compiled on AIX 4.2 with GCC 2.95.2
>
> Thanks
>
> Eric GRIMOIS
> Analyste programmeur
> SEI - CPAM du Val d'Oise
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>