Re: Database schema for univesal usage
Date: Sat, 28 May 2005 11:26:21 GMT
Message-ID: <xzYle.9359$M36.7409_at_newsread1.news.atl.earthlink.net>
"Kenneth Downs" <knode.wants.this_at_see.sigblock> wrote in message
news:599im2-jon.ln1_at_pluto.downsfam.net...
> David Cressey wrote:
> The ALTER TABLE takes a moment, sure, especially if you are working alone,
> don't have any programs making use of the column, and have no users who
> tend to dislike bringing the system down for changes.
>
> And if you don't have to write down why you did it, or justify it to
> anybody, it's much easier than if you do. Who needs documentation, we can
> all remember, right?
I can only refer this discussion back to DEC Rdb/VMS (Oracle/Rdb since 1994).
In DEC Rdb, you don't have to shut the database down to execute ALTER TABLE
ADD COLUMN.
It's done in the context of a transaction. It get's a little messy if
there's a concurrent transaction using the same table,
so the system will force a quiet point. But the disruption to users is
nowhere near what you describe.
If you want, you can extract a create script from an existing database, so you can always generate a new empty database on the fly. I think it's better to do maintenance on an existing create script, because you can add comments.
And so on.