Inconsistent syntax in GRANT

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Inconsistent syntax in GRANT
Дата
Msg-id 200601031719.41604.josh@agliodbs.com
обсуждение исходный текст
Ответы Re: Inconsistent syntax in GRANT  (Euler Taveira de Oliveira <eulerto@yahoo.com.br>)
Список pgsql-hackers
Folks,

Just got tripped up by this:

GRANT SELECT ON table1 TO someuser;
GRANT SELECT ON table1_id_seq TO someuser;
.... both work

However,
GRANT SELECT ON TABLE table1 TO someuser; 
... works, while ....
GRANT SELECT ON SEQUENCE table1_id_seq TO someuser;
... raises an error.

This is inconsistent.   Do people agree with me that the parser should 
accept "SEQUENCE" there, since the optional object name works for all 
other objects?  Is there some technical reason this is difficult to do?

-- 
--Josh

Josh Berkus
Aglio Database Solutions
San Francisco


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

Предыдущее
От: Josh Berkus
Дата:
Сообщение: Re: [Bizgres-general] WAL bypass for INSERT, UPDATE and
Следующее
От: David Fetter
Дата:
Сообщение: Deferrable UNIQUE INDEX?