Re: sql to grant privilege on sequence

Поиск
Список
Период
Сортировка
От Guillaume Lelarge
Тема Re: sql to grant privilege on sequence
Дата
Msg-id CAECtzeXrh1z1-gC=uPM84ioRmKKNiesrENpWh11aq6emO6+Zmg@mail.gmail.com
обсуждение исходный текст
Ответ на sql to grant privilege on sequence  ("liuyuanyuan" <liuyuanyuangogo@gmail.com>)
Ответы 答复: [ADMIN] sql to grant privilege on sequence  ("liuyuanyuan" <liuyuanyuangogo@gmail.com>)
Список pgsql-admin

Le 14 juil. 2014 08:20, "liuyuanyuan" <liuyuanyuangogo@gmail.com> a écrit :
>
> Hi, Hackers!
>
> I got a question about sequence SQL of pgadmin3 , such as pgAdmin3 of PostgreSQL9.3.
>
> I found when I GRANT privilege on sequence by pgAdmin3 tool, it’s always show me sql like:
>
> GRANT SELECT, UPDATE ON TABLE sequence_name TO ….
>
> Rather than:
>
> GRANT SELECT, UPDATE ON SEQUENCE sequence_name TO ….
>
>  
>
> For example:
>
> When I use pgAdmin3 TO create a sequence, I input SEQUENCE NAME – seq1 ,and add privilege SELECT to public,
>
> Then the SQL shows: GRANT .. ON TABLE …
>
>  
>
>  
>
> I checked the documentation of PostgreSQL 9.3 (see http://www.postgresql.org/docs/9.3/interactive/sql-grant.html),
>
> Then I know the privileges grant on sequence are only a part of that on table.
>
> Then I want to know, why to use GRANT ON TABLE ? why not to use GRANT ON SEQUENCE ?
>

Because that was the way to do it before 8.2 iirc. And it still works. Nevertheless I'll look into it.

В списке pgsql-admin по дате отправления:

Предыдущее
От: "liuyuanyuan"
Дата:
Сообщение: sql to grant privilege on sequence
Следующее
От: "liuyuanyuan"
Дата:
Сообщение: 答复: [ADMIN] sql to grant privilege on sequence