pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feednobody user can't nextval('phone_id_seq')
2+ messages / 2 participants
[nested] [flat]
* nobody user can't nextval('phone_id_seq')
@ 2001-04-14 04:46 Ian Pulsford <ianjp@optusnet.com.au>
2001-04-14 08:17 ` Re: nobody user can't nextval('phone_id_seq') Tod McQuillin <devin@spamcop.net>
0 siblings, 1 reply; 2+ messages in thread
From: Ian Pulsford @ 2001-04-14 04:46 UTC (permalink / raw)
To: pgsql-sql
Hi,
Newbie needs help. I have a small web-based phonebook app using php and
postgresql 7.02. It seems the nobody (apache) user can delete, update,
add anything except increment the 'id' sequence. I don't think it's the
code (cut and pasted from a tutorial) because the pgsql user can
increment it.
Any help appreciated.
IanP
--
"Dear someone you've never heard of,
how is so-and-so. Blah blah.
Yours truly, some bozo." - Homer Simpson
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: nobody user can't nextval('phone_id_seq')
2001-04-14 04:46 nobody user can't nextval('phone_id_seq') Ian Pulsford <ianjp@optusnet.com.au>
@ 2001-04-14 08:17 ` Tod McQuillin <devin@spamcop.net>
0 siblings, 0 replies; 2+ messages in thread
From: Tod McQuillin @ 2001-04-14 08:17 UTC (permalink / raw)
To: Ian Pulsford <ianjp@optusnet.com.au>; +Cc: pgsql-sql
On Sat, 14 Apr 2001, Ian Pulsford wrote:
> Newbie needs help. I have a small web-based phonebook app using php and
> postgresql 7.02. It seems the nobody (apache) user can delete, update,
> add anything except increment the 'id' sequence. I don't think it's the
> code (cut and pasted from a tutorial) because the pgsql user can
> increment it.
You need to grant access to the sequence.
test=# \d foo
Table "foo"
Attribute | Type | Modifier
-----------+-------------+---------------------------------------------------
key | integer | not null default nextval('foo_key_seq'::text)
name | varchar(40) | not null
test=# GRANT ALL ON foo_key_seq TO nobody;
CHANGE
--
Tod McQuillin
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2001-04-14 08:17 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-04-14 04:46 nobody user can't nextval('phone_id_seq') Ian Pulsford <ianjp@optusnet.com.au>
2001-04-14 08:17 ` Tod McQuillin <devin@spamcop.net>
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