Re: Permission; select currval('seq')

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Ivan K <ivan_521521(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Permission; select currval('seq')
Date: 2010-01-02 23:18:14
Message-ID: 20484.1262474294@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Ivan K <ivan_521521(at)yahoo(dot)com> writes:
> test=# GRANT USAGE ON SEQUENCE bla_bla_id_seq TO GROUP test_group_01;
> ERROR: syntax error at or near "bla_bla_id_seq" at character 25
> LINE 1: GRANT USAGE ON SEQUENCE bla_bla_id_seq TO GROUP
> test_group_0...

> Why is the "GRANT USAGE ON SEQUENCE" statement failing?

Because there's no such command in 8.1.x.

IIRC you need "grant select on table ..." instead, but try reading
the appropriate version of the manual.

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Ivan K 2010-01-02 23:57:40 Re: Permission; select currval('seq')
Previous Message Adrian Klaver 2010-01-02 23:14:26 Re: Permission; select currval('seq')