Re: GRANT ON ALL IN schema - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: GRANT ON ALL IN schema
Date
Msg-id 162867790908150649u22c7dfb8j75b15b38b1861852@mail.gmail.com
Whole thread Raw
In response to Re: GRANT ON ALL IN schema  (Andrew Dunstan <andrew@dunslane.net>)
List 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 by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: GRANT ON ALL IN schema
Next
From: Tom Lane
Date:
Subject: Re: GRANT ON ALL IN schema