Re: User privileges on sequences

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Mihai Gheorghiu <tanethq(at)earthlink(dot)net>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: User privileges on sequences
Date: 2001-10-17 20:35:52
Message-ID: Pine.LNX.4.30.0110172018590.628-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Mihai Gheorghiu writes:

> Therefore, I have to give users permissions to sequences, just to the
> extent that they could add records. What is the minimum set of
> privileges for this?

You need UPDATE privileges to be able to execute nextval() and currval().
I assume this would include setval() as well, though I don't see it in the
docs offhand.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2001-10-17 20:36:13 Re: Blank SQL insert statements
Previous Message Arcady Genkin 2001-10-17 20:35:26 SQL equivallent to "\ds" in psql