Problem with sequences - Mailing list pgsql-sql

From Vladimir Terziev
Subject Problem with sequences
Date
Msg-id 200108281515.f7SFFTq01398@star.rila.bg
Whole thread Raw
Responses Re: Problem with sequences
List pgsql-sql
Hi,

I'm writing a script, which has to retrieve a next value from a sequnce. I use 
mod_perl, DBI and DBD::Pg version 0.98.

I notice that when I execute "select nextval('sequence_name'::text) AS 
sname;", via DBI, the value of sequence is updated, but the mod_perl returns 
"DBD::Pg::st execute failed: ERROR:  sequence_name.nextval: you don't have 
permissions to set sequence"

The above command is executed sucssesfuly in psql and returns the desire 
result.

Does anybody has an idea what is the problem ?
Vladimir



pgsql-sql by date:

Previous
From: Albert Reiner
Date:
Subject: Re: [NOVICE] protected ON DELETE CASCADE
Next
From: jari.aalto@poboxes.com (Jari Aalto+usenet)
Date:
Subject: GRANT ALL ON TO GROUP failure