Re: GRANT ON ALL IN schema

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: GRANT ON ALL IN schema
Дата
Msg-id 162867790908150649u22c7dfb8j75b15b38b1861852@mail.gmail.com
обсуждение исходный текст
Ответ на Re: GRANT ON ALL IN schema  (Andrew Dunstan <andrew@dunslane.net>)
Список pgsql-hackers
2009/8/15 Andrew Dunstan <andrew@dunslane.net>:
>
>
> Pavel Stehule wrote:
>>
>> why we need DO statement? Why not just $$ $$. Only string literal
>> cannot be statement too, so DO is unnecessary.
>>
>> it can look like:
>>
>> $$
>>  FOR r IN SELECT ....
>>  END LOOP;
>> $$;
>>
>> ???
>>
>>
>
> Well, it's arguably somewhat un-SQL-ish. Every command in SQL is introduced
> by a keyword verb.

sure - this is not SQL statement.

I thing so most SQL-ish is T-SQL style. You have integrated procedural
statements.

so the best is directly:

FOR ....
LOOP
END LOOP;

but it's far future :)


>
> I'm also not sure I want to be trying to execute any arbitrary string that
> accidentally gets placed there because someone forgot to put a keyword or
> accidentally deleted it.
>
> But I'm not too dogmatic on the subject. What do others think?
>
> cheers
>
> andrew
>
>


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: GRANT ON ALL IN schema
Следующее
От: Tom Lane
Дата:
Сообщение: Re: GRANT ON ALL IN schema