Страница 1 из 1
The Rule System
Добавлено: 07 дек 2006, 09:15
StS
The rule system (more precisely speaking, the query rewrite rule system) is totally different from stored procedures and triggers. It modifies queries to take rules into consideration, and then passes the modified query to the query planner for planning and execution. It is very powerful, and can be used for many things such as query language procedures, views, and versions.
http://www.postgresql.org/docs/8.2/inte ... rules.html
Есть ли в других DBMS что-то подобное? Интересуют Oracle, MySQL and MS SQL?
Thanks.
Добавлено: 07 дек 2006, 11:02
папа Карло
я не совсем уверен что это такое, но в СКЛ Сервере есть план гайды...
Добавлено: 07 дек 2006, 14:18
Vovchik
Звучит как Rule hint for optimiser - но написано как то ужо оченно широко.
Re: The Rule System
Добавлено: 07 дек 2006, 22:58
hawk
StS писал(а):The rule system (more precisely speaking, the query rewrite rule system) is totally different from stored procedures and triggers. It modifies queries to take rules into consideration, and then passes the modified query to the query planner for planning and execution. It is very powerful, and can be used for many things such as query language procedures, views, and versions.
http://www.postgresql.org/docs/8.2/inte ... rules.html
Есть ли в других DBMS что-то подобное? Интересуют Oracle, MySQL and MS SQL?
Thanks.
насколько я понимаю в явном виде нет, ето оригинальная идея postgresql.
В какой то мере ее заменяют триггерами с (update,insert,delete) (instead) rules...в какой то мере (materialized) views (собственно view в postgresql ето таблица со специальним селект рул). в принципе еще одним тоже не явным но возможно замещающим аналогом можно перечислить pipelined functions... не совсем то, точнее совсем не то, но функционально иногда можно заместить. в Oracle некоторый аналог мог бы быть VPD...в постгресе ето правда более явно и ИМХО прозрачнее.
Добавлено: 08 дек 2006, 11:59
StS
ОК. Всем спасибо.