Subject Re: [Firebird-Architect] Cross database queries: Requirements
Author Adriano dos Santos Fernandes
Vlad Horsun wrote:
>> I think is wrong to put external metadata in tables, be it the current
>> ones or new ones.
>>
>
>
> We must put it somewhere. And we need to give easy interface to drivers
> to retrieve info.
>
>
>> It should be a system view IMO...
>>
>
>
> As soon as we give access via SQL to external metadata i have no problem
> with view\relation\etc. Just not mix it into existing RDB$xxx and don't move it into
> mega-database ;)
>
> What tables would query your system view ?
>
Not real tables... Something like MON$ querying local system tables more
remote data-sources.
The data-source provider will need to have an API exposing this info.

BTW, IMHO MON$ is much more like views than tables.

>
>> AFAIR, Oracle stores only a timestamp of the original object, and the
>> timestamp is also in the original database.
>>
>> If timestamp of object (in "client" and "server" databases of dblink)
>> are different, the procedure/trigger are compiled again when executed,
>> and if necessary invalidated.
>>
>
>
> This is depends if remote database have this info. Firebird, as you know,
> didn't track such timestamps.
Yes, but external database can and will change.

Having obsolete metadata copy of it doesn't do anything good.


Adriano