Subject | Re: [Firebird-Architect] Extended field/domain DEFAULT usage |
---|---|
Author | Martijn Tonies |
Post date | 2006-01-04T07:51:26Z |
> > >AFAIK, the main problem is in GBAK that will need to manage moreissue
> > >dependencies.
>
> Adriano is correct.
>
> > Gbak? Gbak is a backup and restore utilities -- it serializes metadata
> > and data in an order than can be readily restored.
>
> Exactly. And a simple default clause referencing UDF (even not considering
> selects and procedures) makes a database backup unrestorable. The same
> exists with computed fields. You may find an example in SF #1047576. Sofar
> the conclusion is that both backup order and restore transactionmanagement
> require modifications.committed
>
> >From the top of my head: all metadata containing BLR is globally
> at the end of the restore process. But relations must be committed infailure.
> advance (in order to store data) and IIRC also in different transaction.
> When table BLRs (defaults, computed, etc) are parsed, we cannot resolve
> references to other stored objects in the cache and get the restore
Beats me, but why exactly is it parsed? I thought gbak just "stored" the BLR
and data?
> The known workaround is to use -one_at_a_time switch (which AFAIU commitsobjects
> metadata step by step), but I'm not 100% sure it works for all cases.
>
> There were suggestions to adjust the backup order to take all possible
> interdependencies into account. But I'd better teach GBAK to modify
> (instead of always storing them) and then separate "physical" tablemetadata
> (the one defining its format) and BLR table metadata. The former would beglobal
> committed immediately while BLRs would be added in the context of the
> transaction and committed later (as other objects are processed).Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, Oracle & MS SQL
Server
Upscene Productions
http://www.upscene.com
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com