Re: [HACKERS] sequence privileges in information schema

2011-04-26 Thread Tom Lane
Peter Eisentraut writes: > We currently don't represent the sequence privileges in the information > schema. We could perhaps do a subset of them. > In the SQL standard, there is only the USAGE privilege, and its only > purpose (AFAICT) is to allow the NEXT VALUE FOR expression. > PostgreSQL's n

Re: [HACKERS] Sequence privileges

2002-05-18 Thread Neil Conway
On Sat, 18 May 2002 19:45:30 -0400 "Tom Lane" <[EMAIL PROTECTED]> wrote: > Joe Conway <[EMAIL PROTECTED]> writes: > > Since the sequence-specific operations are really just function calls, > > maybe it should be: > > SELECT: read sequence as a table > > EXECUTE: all sequence-specific ope

Re: [HACKERS] Sequence privileges

2002-05-18 Thread Tom Lane
Joe Conway <[EMAIL PROTECTED]> writes: > Tom Lane wrote: >> what we really have is: >> >> SELECT: read sequence as a table >> UPDATE: all sequence-specific operations. > Since the sequence-specific operations are really just function calls, > maybe it should be: > SELECT: read sequence a

Re: [HACKERS] Sequence privileges

2002-05-18 Thread Joe Conway
Tom Lane wrote: > > "SELECT" still means what it says: the ability to do a select from > the sequence, which lets you see the sequence parameters. So what > we really have is: > > SELECT: read sequence as a table > UPDATE: all sequence-specific operations. > Since the sequence-spe

Re: [HACKERS] Sequence privileges

2002-05-18 Thread Tom Lane
Peter Eisentraut <[EMAIL PROTECTED]> writes: > But shouldn't it more ideally be > currval: SELECT > nextval: SELECT + UPDATE > setval: UPDATE > because nextval allows you to infer the content of the sequence? (Cf. > UPDATE tab1 SET a = b requires SELECT + UPDATE on tab1.) One o