Re: Why sequence grant is separated from table?

From: Szymon Guz <mabewlun(at)gmail(dot)com>
To: Rural Hunter <ruralhunter(at)gmail(dot)com>
Cc: "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Why sequence grant is separated from table?
Date: 2013-06-19 09:47:30
Message-ID: CAFjNrYto7C0G_2+UFLcWng3T6rZih5t54P0tRO4w+_Z0wONxMA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On 19 June 2013 11:35, Rural Hunter <ruralhunter(at)gmail(dot)com> wrote:

> I really hate the error "permission denied for sequence xxxxx" when I
> grant on a table but forget to grant additionally on the related sequence
> to users. Can the permission of table and related sequences be merged?
>
>
I can imagine a situation where you want a user to be granted rights on a
table, to use sequence with curval and nextval functions, but not setval,
as it can provide some database problems.

What's more, in general, you cannot say which sequence is used for which
table, if the sequence is not owned by the table.

Which permissions of a table do you want to merge with which permissions of
sequences?

regards
Szymon

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Rural Hunter 2013-06-19 10:06:11 Re: Why sequence grant is separated from table?
Previous Message Rural Hunter 2013-06-19 09:35:48 Why sequence grant is separated from table?