Schema Evolution and the Relational Algebra

In this paper we discuss extensions to the conventional relational algebra to support both aspects of transaction time, evolution of a database’s contents and evolution of a database’s schema. We dene a relation’s schema to be the relation’s temporal signature, a function mapping the relation’s attribute names onto their value domains, and class, indicating the extent of support for time. We also introduce commands to change a relation, now dened as a triple consisting of a sequence of classes, a sequence of signatures, and a sequence of states. A semantic type system is required to identify semantically incorrect expressions and to enforce consistency constraints among a relation’s class, signature, and state following update. We show that these extensions are applicable, without change, to historical algebras that support valid time, yielding an algebraic language for the query and update of temporal databases. The additions preserve the useful properties of the conventional algebra. A database’s schema describes the structure of the database; the contents of the database must adhere to that structure [Date 1976, Ullman 1982]. Schema evolution refers to changes to the database’s schema over time. Conventional databases allow only one schema to be in force at a time, requiring restructuring (also termed logical reorganization [Sockut & Goldberg 1979]) when the schema is modied. With the advent of databases storing past states [McKenzie 1986], it becomes desirable to accommodate multiple schemas, each in eect for an interval in the past. Schema versioning refers to retention of past schemas resulting from schema evolution. In an earlier paper [McKenzie & Snodgrass 1987A] we proposed extensions to the conventional relational algebra [Codd 1970] that model the evolution of a database’s contents. We did not, however, consider the evolution of a database’s schema. In this paper, we provide further extensions to the conventional relational algebra that model the evolution of a database’s schema. The extensions that support evolution of a database’s contents are repeated here for completeness and because the extensions supporting schema evolution are best explained in concert with those earlier extensions.

[1]  Richard T. Snodgrass,et al.  An Evaluation of Historical Algebras , 1987 .

[2]  Won Kim,et al.  An object-oriented approach to multimedia databases , 1986, SIGMOD '86.

[3]  E. F. CODD,et al.  A relational model of data for large shared data banks , 1970, CACM.

[4]  C. J. Date,et al.  An introduction to database systems (The systems programming series) , 1975 .

[5]  David Maier,et al.  The Theory of Relational Databases , 1983 .

[6]  Richard T. Snodgrass,et al.  Performance Analysis of Temporal Queries , 1989, Inf. Sci..

[7]  Shamkant B. Navathe,et al.  TSQL: A Language Interface for History Databases , 1987, Temporal Aspects in Information Systems.

[8]  Gary H. Sockut,et al.  Database Reorganization—Principles and Practice , 1979, CSUR.

[9]  llsoo Ahn,et al.  Temporal Databases , 1986, Computer.

[10]  Ilsoo Ahn,et al.  Towards an implementation of database management systems with temporal support , 1986, 1986 IEEE Second International Conference on Data Engineering.

[11]  Patricia G. Selinger,et al.  Support for repetitive transactions and ad hoc queries in System R , 1981, TODS.

[12]  Susan Jones,et al.  LEGOL 2.0: A relational specification language for complex rules , 1979, Inf. Syst..

[13]  Peter D. Mosses,et al.  Denotational semantics , 1995, LICS 1995.

[14]  Michel E. Adiba,et al.  Historical Multi-Media Databases , 1986, VLDB.

[15]  Shamkant B. Navathe,et al.  Dealing with Temporal Schema Anomalies in History Databases , 1987, VLDB.

[16]  Roger G. Johnson,et al.  TRA: A Model for a Temporal Relational Algebra , 1987, Temporal Aspects in Information Systems.

[17]  Marta Peixoto New York University , 1844, The American journal of dental science.

[18]  Richard T. Snodgrass,et al.  A taxonomy of time databases , 1985, SIGMOD Conference.

[19]  Henry F. Korth,et al.  Schema Versions and Dag Rearrangement Views in Object-oriented Databases , 1988 .

[20]  Arie Shoshani,et al.  Temporal Data Management , 1986, VLDB.

[21]  Albert Croker,et al.  The historical relational data model (HRDM) and algebra based on lifespans , 1986, 1987 IEEE Third International Conference on Data Engineering.

[22]  Shamkant B. Navathe,et al.  Restructuring for large databases: three levels of abstraction , 1975, TODS.

[23]  Jay Banerjee,et al.  Semantics and implementation of schema evolution in object-oriented databases , 1987, SIGMOD '87.

[24]  Shashi K. Gadia,et al.  A generalized model for a relational temporal database , 1988, SIGMOD '88.

[25]  Jacov Ben-Zvi,et al.  The time relational model , 1982 .

[26]  Dana S. Scott,et al.  Data Types as Lattices , 1976, SIAM J. Comput..

[27]  Richard T. Snodgrass,et al.  Extending the relational algebra to support transaction time , 1987, SIGMOD '87.

[28]  James Wong COMPUTER SCIENCE DEPARTMENT , 1971 .

[29]  Joseph E. Stoy,et al.  Denotational Semantics: The Scott-Strachey Approach to Programming Language Theory , 1981 .

[30]  Shamkant B. Navathe,et al.  Schema analysis for database restructuring , 1977, TODS.

[31]  Vincent Y. Lum,et al.  EXPRESS: a data EXtraction, Processing, and Restructuring System , 1977, TODS.

[32]  Stanley B. Zdonik,et al.  The management of changing types in an object-oriented database , 1986, OOPSLA 1986.

[33]  Ronald M. Lee A denotational Semantics for Administrative Databases , 1985, DS-1.

[34]  Richard T. Snodgrass,et al.  Performance evaluation of a temporal database management system , 1986, SIGMOD '86.

[35]  Nan C. Shu Automatic data transformation and restructuring , 1987, 1987 IEEE Third International Conference on Data Engineering.

[36]  Michael D. Soo,et al.  Bibliography on temporal databases , 1991, SGMD.

[37]  Jeffrey D. Ullman,et al.  Principles of Database Systems , 1980 .

[38]  Irving L. Traiger,et al.  Views, authorization, and locking in a relational data base system , 1975, AFIPS '75.

[39]  Abdullah Uz Tansel Adding time dimension to relational model and extending relational algebra , 1986, Inf. Syst..

[40]  Ilsoo Ahn Performance modeling and access methods for temporal database management systems , 1986 .

[41]  Gad Ariav,et al.  A temporally oriented data model , 1986, TODS.

[42]  Michael J. C. Gordon,et al.  The Denotational Description of Programming Languages , 1979, Springer New York.

[43]  Naphtali Rishe On Denotational Semantics of Data Bases , 1985, Mathematical Foundations of Programming Semantics.

[44]  Michael Stonebraker,et al.  Implementation of a time expert in a data base system , 1982, SGMD.

[45]  Peter Dadam,et al.  Designing DBMS support for the temporal dimension , 1984, SIGMOD '84.

[46]  Kazimierz Subieta,et al.  Denotational semantics of query languages , 1987, Inf. Syst..

[47]  Richard T. Snodgrass,et al.  The temporal query language TQuel , 1984, TODS.

[48]  Bruce D. Shriver,et al.  Research Directions in Object-Oriented Programming , 1987 .

[49]  Edwin McKenzie An Algebraic Language for Query and Update of Temporal Databases , 1988 .

[50]  Johann A. Makowsky,et al.  Incremental Reorganization of Relational Databases , 1987, VLDB.

[51]  Michael L. Brodie,et al.  Relational Database Systems , 1983, Springer Berlin Heidelberg.

[52]  Stanley B. Zdonik,et al.  The management of changing types in an object-oriented database , 1986, OOPLSA '86.

[53]  Shashi K. Gadia,et al.  A homogeneous relational model and query languages for temporal databases , 1988, TODS.

[54]  David A. Schmidt,et al.  Denotationaisemantics: a methodology for language development , 1986 .

[55]  Stanley B. Zdonik,et al.  Type Evolution in an Object-Oriented Database , 1987, Research Foundations in Object-Oriented and Semantic Database Systems.

[56]  Robert H. Halstead,et al.  Parallel Symbolic Computing , 1986, Computer.

[57]  Chung-sing Yeung Query languages for a heterogeneous temporal database , 1986 .

[58]  Shashi K. Gadia Toward a multihomogeheous model for a temporal database , 1986, 1986 IEEE Second International Conference on Data Engineering.

[59]  Howard Lee Morgan,et al.  Dynamic restructuring of databases with generation data structures , 1976, ACM '76.