Re: OOP real life example (was Re: Why is MySQL more chosen

Поиск
Список
Период
Сортировка
От Don Baccus
Тема Re: OOP real life example (was Re: Why is MySQL more chosen
Дата
Msg-id 3D574F88.4060602@pacifier.com
обсуждение исходный текст
Ответ на Re: OOP real life example (was Re: Why is MySQL more chosen  (Curt Sampson <cjs@cynic.net>)
Ответы Re: OOP real life example (was Re: Why is MySQL more chosen
Re: OOP real life example (was Re: Why is MySQL more chosen
Список pgsql-hackers
Curt Sampson wrote:
> On Sun, 11 Aug 2002, Don Baccus wrote:
> 
> 
>>I've been wanting to point out that SQL views are really, when
>>scrutinized, "just syntactic sugar" ...
> 
> 
> Oh? Ok, please translate the following into equivalant SQL that
> does not use a view:
> 
>     CREATE TABLE t1 (key serial, value1 text, value2 text);
>     CREATE VIEW v1 AS SELECT key, value1 FROM t1;
>     GRANT SELECT ON v1 TO sorin;

Granulize GRANT to the table column level.   Then GRANT "SELECT" perms 
for the user on every column from the two tables that happen to be 
included in the view.

Yes, it's awkward.   So are the VIEW-based replacements for PG's type 
extensibility features.


-- 
Don Baccus
Portland, OR
http://donb.photo.net, http://birdnotes.net, http://openacs.org



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: cash_out bug
Следующее
От: Curt Sampson
Дата:
Сообщение: Re: OOP real life example (was Re: Why is MySQL more chosen