Re: Proving an Upgrade is Possible
Date: Sat, 04 Jun 2005 10:35:47 -0400
Message-Id: <8vq8n2-0ek.ln1_at_pluto.downsfam.net>
Jan Hidders wrote:
>> I would love to be able to determine with certainty if a certain >> operation >> can be validated before it is performed. This is the operation of >> changing the state of a database by an upgrade.
>
> An upgrade of what? The database? The schema of the database? The DBMS
> software? What are you talking about here? And what on earth is a
> "meta-state"?
>
> -- Jan Hidders
An upgrade of a database, not the DBMS software. In the trivial case just changes to the tables and columns, but also at very least unique and referential constraints.
The meta-state is all possible states described by the data dictionary (or meta-data if you prefer).
My goal is to always know completely whether all structure changes to a db are valid.
How would you know in advance though that this upgrade could not work? Well, its simple enough. You have the current state of the database described in tables, meta-State 1, or mS(1). You have the destination state described in other tables, mS(2). You join them together and look at everything that changes, such as key definitions. The dropping of a column in a key is not allowed, so the upgrade log puts out an error and refuses to run.
-- Kenneth Downs Secure Data Software, Inc. (Ken)nneth_at_(Sec)ure(Dat)a(.com)Received on Sat Jun 04 2005 - 16:35:47 CEST