Re: AW: New SQL Datatype RECURRINGCHAR

Поиск
Список
Период
Сортировка
От Jan Wieck
Тема Re: AW: New SQL Datatype RECURRINGCHAR
Дата
Msg-id 200107091709.f69H93o08140@jupiter.us.greatbridge.com
обсуждение исходный текст
Ответ на Re: AW: New SQL Datatype RECURRINGCHAR  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> Hannu Krosing <hannu@tm.ee> writes:
> > Zeugswetter Andreas SB wrote:
> >> The most prominent of the "interesting uses" probably beeing when the views
> >> are part of the authorization system, since views are the only standardized
> >> mechanism to restrict access at the row level.
>
> > True, and often the views can be restricted to insert only data that
> > will be visible using this view.
>
> Right.  The interesting question is whether an automatic rule creator
> could be expected to derive the correct restrictions on
> insert/update/delete given the WHERE clause of the view.  Insert/delete
> might not be too bad (at first thought, requiring the inserted/deleted
> rows to pass the WHERE condition would do), but I'm not so sure about
> update.  Is it sufficient to require both the old and new states of the
> row to pass the WHERE condition?
   Yes,  no  other  chance.  Remember that the rule on SELECT is   allways applied to the  scan  that  looks  for  the
rows to   update,  so  you'd  never  have  a  chance  to hit other rows   through the view.
 


Jan

--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: AW: New SQL Datatype RECURRINGCHAR
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: AW: pg_index.indislossy