Set-oriented production rules in relational database systems

Jennifer Widom, Sheldon J. Finkelstein

1990 · 231 citations · 17 references

DOIFull text

Open access

Concepts

TL;DR

The paper proposes adding a production rules facility to relational database systems. The facility defines set‑oriented rules that trigger automatically on database changes, with conditions and actions referencing both the current state and the change sets, implemented via an SQL extension and formally semantically modeled to handle external operations, self‑triggering, and concurrent rule execution.

Abstract

We propose incorporating a production rules facility into a relational database system. Such a facility allows definition of database operations that are automatically executed whenever certain conditions are met. In keeping with the set-oriented approach of relational data manipulation languages, our production rules are also set-oriented—they are triggered by sets of changes to the database and may perform sets of changes. The condition and action parts of our production rules may refer to the current state of the database as well as to the sets of changes triggering the rules. We define a syntax for production rule definition as an extension to SQL. A model of system behavior is used to give an exact semantics for production rule execution, taking into account externally-generated operations, self-triggering rules, and simultaneous triggering of multiple rules.

References

17