Abstract
Referential actions (rac's) are specialized triggers used to automatically maintain referential integrity. While their local effects can be grasped easily, it is far from obvious what the global semantics of a set RA of interacting rac's should be. To capture the intended meaning of RA, we first present an abstract non-constructive semantics. By formalizing RA as a logic program Pra, a constructive semantics is obtained. The equivalence of the logic programming semantics and the abstract semantics is proven using a game-theoretic characterization, which provides additional insight into the meaning of rac's. As shown in previous work, for general rac's, it may be infeasible to compute all maximal admissible solutions. Therefore, we focus on a tractable subset, i.e., rac's without modifications. We show that in this case a unique maximal admissible solution exists, and derive a ptime algorithm for computing this solution. In case a set U⊳ of user requests is not admissible, a maximal admissible subset of U⊳ is suggested.
Preview
Unable to display preview. Download preview PDF.
References
R. Cochrane, H. Pirahesh, and N. Mattos. Integrating Triggers and Declarative Constraints in SQL Database Sytems. In Proc. VLDB, pp. 567–578, Mumbai (Bombay), India, 1996.
C. Date. Relational Database Writings 1985–1989. Addison-Wesley, 1990.
C. Date and H. Darwen. A Guide to the SQL Standard: A User's Guide to the Standard Relational Language SQL. Addison-Wesley, 1994.
M. Gelfond and V. Lifschitz. The Stable Model Semantics for Logic Programming. In Proc. ICLP, pp. 1070–1080, 1988.
B. M. Horowitz. A Run-Time Execution Model for Referential Integrity Maintenance. In Proc. Intl. Conf. on Data Engineering, pp. 548–556, 1992.
ISO/IEC JTC1/SC21. Information Technology — Database Languages — SQL2, July 1992. ANSI, 1430 Broadway, New York, NY 10018.
ISO/ANSI Working draft. Database Languages — SQL3, October 1995.
B. LudÄscher, W. May, and G. Lausen. Nested Transactions in a Logical Language for Active Rules. In Proc. Intl. Workshop on Logic in Databases (LID), LNCS 1154, pp. 196–222, 1996. Springer.
B. LudÄscher, W. May, and G. Lausen. Referential Actions as Logical Rules. In Proc. PODS'97, pp. 217–224, 1997.
B. LudÄscher, W. May, and G. Lausen. Triggers, Games, and Stable Models. Technical report, Institut für Informatik, UniversitÄt Freiburg, 1997.
B. LudÄscher, W. May, and J. Reinert. Towards a Logical Semantics for Referential Actions in SQL. In Proc. 6th Intl. Workshop on Foundations of Models and Languages for Data and Objects: Integrity in Databases, Dagstuhl, Germany, 1996.
V. M. Markowitz. Safe Referential Integrity and Null Constraint Structures in Relational Databases. Information Systems, 19(4):359–378, 1994.
T. C. Przymusinski. On the Declarative Semantics of Deductive Databases and Logic Programs. In J. Minker, editor, Foundations of Deductive Databases and Logic Programming, pp. 191–216. Morgan Kaufmann, 1988.
J. Reinert. Ambiguity for Referential Integrity is Undecidable. In Constraint Databases and Applications, LNCS 1034, pp. 132–147. Springer, 1996.
A. Van Gelder. The Alternating Fixpoint of Logic Programs with Negation. Journal of Computer and System Sciences, 47(1):185–221, 1993.
A. Van Gelder, K. Ross, and J. Schlipf. The Well-Founded Semantics for General Logic Programs. Journal of the ACM, 38(3):620–650, July 1991.
Author information
Authors and Affiliations
Editor information
Rights and permissions
Copyright information
© 1998 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
LudÄscher, B., May, W. (1998). Referential actions: From logical semantics to implementation. In: Schek, HJ., Alonso, G., Saltor, F., Ramos, I. (eds) Advances in Database Technology — EDBT'98. EDBT 1998. Lecture Notes in Computer Science, vol 1377. Springer, Berlin, Heidelberg . https://doi.org/10.1007/BFb0100999
Download citation
DOI: https://doi.org/10.1007/BFb0100999
Published:
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-540-64264-0
Online ISBN: 978-3-540-69709-1
eBook Packages: Springer Book Archive