Re: Permission; select currval('seq') - Mailing list pgsql-general

From Tom Lane
Subject Re: Permission; select currval('seq')
Date
Msg-id 20484.1262474294@sss.pgh.pa.us
Whole thread Raw
In response to Permission; select currval('seq')  (Ivan K <ivan_521521@yahoo.com>)
List pgsql-general
Ivan K <ivan_521521@yahoo.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

pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Permission; select currval('seq')
Next
From: Adrian Klaver
Date:
Subject: Re: Permission; select currval('seq')