Re: GRANT problem ?

From: "D'Arcy J(dot)M(dot) Cain" <darcy(at)druid(dot)net>
To: "GRIMOIS Eric" <eric(dot)grimois(at)cpam-cergypontoise(dot)cnamts(dot)fr>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: GRANT problem ?
Date: 2002-03-12 11:59:21
Message-ID: 20020312115921.EB7E11C6C@druid.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On March 12, 2002 05:16 am, GRIMOIS Eric wrote:
> 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

You have to grant permissions on the sequences separately from the table. It
used to work as expected but at some point it changed for some reason. It
certainly is inconvenient especially if you were used to the previous
behaviour and wrote all you local tools based on it.

You can get a list of all sequences with the "\ds" command in psql.

--
D'Arcy J.M. Cain <darcy(at){druid|vex}.net> | Democracy is three wolves
http://www.druid.net/darcy/ | and a sheep voting on
+1 416 425 1212 (DoD#0082) (eNTP) | what's for dinner.

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Gary Stainburn 2002-03-12 12:17:05 in-date news items
Previous Message PGMailList 2002-03-12 11:58:05 Re: GRANT problem ?