pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedProblem with sequences
2+ messages / 2 participants
[nested] [flat]
* Problem with sequences
@ 2001-08-28 15:15 Vladimir Terziev <vlady@rila.bg>
2001-08-30 16:56 ` Re: Problem with sequences Josh Berkus <josh@agliodbs.com>
0 siblings, 1 reply; 2+ messages in thread
From: Vladimir Terziev @ 2001-08-28 15:15 UTC (permalink / raw)
To: 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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Problem with sequences
2001-08-28 15:15 Problem with sequences Vladimir Terziev <vlady@rila.bg>
@ 2001-08-30 16:56 ` Josh Berkus <josh@agliodbs.com>
0 siblings, 0 replies; 2+ messages in thread
From: Josh Berkus @ 2001-08-30 16:56 UTC (permalink / raw)
To: Vladimir Terziev <vlady@rila.bg>; pgsql-sql
Vladimir,
> 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"
Your issue is either:
1. You are not connecting from Perl as the same user you connect as to
psql, and the perl user does not have any/many rights to the database.
2. There is some issue with authentication of users for Perl::DBI.
Unfortunately, you are probably not going to find people on this list
capable of diagnosing either problem. Try the pgsql-interfaces list
instead. (http://postgresql.advancecreations.com/users-lounge/index.html)
-Josh Berkus
______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh@agliodbs.com
and data management solutions (415) 565-7293
for law firms, small businesses fax 621-2533
and non-profit organizations. San Francisco
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2001-08-30 16:56 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-08-28 15:15 Problem with sequences Vladimir Terziev <vlady@rila.bg>
2001-08-30 16:56 ` Josh Berkus <josh@agliodbs.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox