Surprising syntax error

Поиск
Список
Период
Сортировка
От Marc Munro
Тема Surprising syntax error
Дата
Msg-id 1210792024.3296.32.camel@bloodnok.com
обсуждение исходный текст
Список pgsql-general
The statement:

  revoke all on view internal.all_objects from public;

yields a syntax error.  The docs show that the word "view" is not
acceptable in this statement which is fine but the surprising thing is
that:

  revoke all on table internal.all_objects from public;

works fine even though all_objects is a view and not a table.

Now that I know about it, this doesn't bother me but it was a surprise
and I wonder whether the the parser/planner/whatever should be a bit
smarter about allowing the word table to apply to non-tables, and
whether the word view ought to be allowed.

__
Marc

Вложения

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

Предыдущее
От: mailtolouis2020-postgres@yahoo.com
Дата:
Сообщение: Re: postgres crash when select a record
Следующее
От: Sam Mason
Дата:
Сообщение: Re: rounding problems