From: Petter Reinholdtsen <pere@hungry.com>
To: pgsql-sql@postgresql.org
Subject: Access rights to sequence.nextval?
Date: Fri, 30 Oct 1998 15:40:11 +0100 (MET)
Message-ID: <199810301440.PAA15232@zero.cc.uit.no> (raw)
I'm getting 'ERROR: invoice_seq.nextval: Permission denied.' when
trying to get the next number from the sequence. It was made with my
user, and user nobody tries to access it from PHP/Apache.
The manual page says:
> CREATE SEQUENCE will enter a new sequence number generator into the
> current data base. This involves creating and initialising a new
> single block table with the name seqname. The generator will be
> "owned" by the user issuing the command.
How do I change the access rights for this sequence, or how do I
change ownership.
Could it be something else that is wrong with this? I'm trying to
access the sequence from perl.
I've tried to change access rights with 'GRANT', but the change does
not show up when I use '\z' in psql. If fact, the sequences are
missing from the list.
BTW: Please send copy of replies to my address, as I don't follow this
list.
--
##> Petter Reinholdtsen <## | pere@td.org.uit.no
O- <SCRIPT Language="Javascript">window.close()</SCRIPT>
http://www.hungry.com/~pere/ | Go Mozilla, go! Go!
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: pere@hungry.com
Subject: Re: Access rights to sequence.nextval?
In-Reply-To: <199810301440.PAA15232@zero.cc.uit.no>
References: <199810301440.PAA15232@zero.cc.uit.no>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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