Re: New SQL Datatype RECURRINGCHAR

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: New SQL Datatype RECURRINGCHAR
Дата
Msg-id 6012.994567627@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: New SQL Datatype RECURRINGCHAR  ("Rod Taylor" <rbt@barchord.com>)
Список pgsql-hackers
"Rod Taylor" <rbt@barchord.com> writes:
> Anyway, the point is that some of the simple views should be straight
> forward to reversing automatically if someone has the will and the
> time it can be done.  A while back a list of 'views which cannot be
> reversed' was created and included things such as Unions,
> Intersections, exclusions, aggregates, CASE statements, and a few more
> items.

SQL92 has a notion that certain simple views are "updatable", while the
rest are not.  In our terms this means that we should automatically
create ON INSERT/UPDATE/DELETE rules if the view is updatable according
to the spec.  I have not bothered to chase down all the exact details
of the spec's "updatableness" restrictions, but they're along the same
lines you mention --- only one referenced table, no aggregation, no
set operations, all view outputs are simple column references, etc.

My feeling is that the restrictions are stringent enough to eliminate
most of the interesting uses of views, and hence an automatic rule
creation feature is not nearly as useful/important as it appears at
first glance.  In real-world applications you'll have to expend some
thought on manual rule creation anyway.
        regards, tom lane


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

Предыдущее
От: "Rod Taylor"
Дата:
Сообщение: Re: New SQL Datatype RECURRINGCHAR
Следующее
От: Víctor Romero
Дата:
Сообщение: Re: Pg on SMP half-powered