Re: cross-db queries (was Are we losing momentum?) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: cross-db queries (was Are we losing momentum?)
Date
Msg-id 29147.1050514545@sss.pgh.pa.us
Whole thread Raw
In response to Re: cross-db queries (was Are we losing momentum?)  (Joe Conway <mail@joeconway.com>)
List pgsql-hackers
Joe Conway <mail@joeconway.com> writes:
> Darko Prenosil wrote:
>> Unfortunately any other way ends up with first selecting *ALL* records from 
>> host ! If there is no such limitation I'll be pretty satisfied with dblink, 
>> and will newer ask for "cross-db-queries" again !!!

> Yeah, this is why a proper implementation following the spec is needed. 
> If the external access was part of the backend, then the planner could 
> be taught to push down qualifiers to the external source where 
> appropriate (I think -- maybe Tom will comment on this).

Yes, the newer version of SQL-MED has APIs that allow this sort of thing
to be done.  Of course, it's another huge chunk of work beyond basic
SQL-MED ... but at least the roadmap is there, and when we get to the
end of the road we might even find other DBMSes that can speak the same
language.  If we invent our own spec the chance of handling cross-DBMS
queries intelligently is nil :-(
        regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Many comments (related to "Are we losing momentum?")
Next
From: Peter Eisentraut
Date:
Subject: Re: encoding question