Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id B8D1D9FBBDB; Thu, 7 Jun 2007 12:57:48 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 54459-10; Thu, 7 Jun 2007 12:57:45 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from nihrelayxway2.hub.nih.gov (mailfwd.nih.gov [128.231.90.107]) by postgresql.org (Postfix) with ESMTP id A504C9FB48A; Thu, 7 Jun 2007 12:57:45 -0300 (ADT) X-IronPortListener: NIH_Relay X-SBRS: None X-IronPort-AV: E=Sophos;i="4.16,395,1175486400"; d="scan'208";a="301668369" Received: from pressa.nci.nih.gov (HELO [137.187.209.230]) ([137.187.209.230]) by nihrelayxway2.hub.nih.gov with ESMTP; 07 Jun 2007 11:57:44 -0400 Message-ID: <46682AF8.1040901@mail.nih.gov> Date: Thu, 07 Jun 2007 11:57:44 -0400 From: Sean Davis User-Agent: Thunderbird 1.5.0.8 (X11/20060911) MIME-Version: 1.0 To: Loredana Curugiu CC: Bart.Degryse@indicator.be, pgsql-novice@postgresql.org, pgsql-jdbc@postgresql.org Subject: Re: [NOVICE] Query with tables from 2 different databases inJava References: <1c23c8e70706070708m2f3be6f9o75571fd8a82ee390@mail.gmail.com> <4668154A.3090105@mail.nih.gov> <4668390D.A3DD.0030.0@indicator.be> <1c23c8e70706070850h7696955aw2bfc8cee38d7b43f@mail.gmail.com> In-Reply-To: <1c23c8e70706070850h7696955aw2bfc8cee38d7b43f@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/32 X-Sequence-Number: 17094 Loredana Curugiu wrote: > > > On 6/7/07, *Bart Degryse* > wrote: > > Personally I have no good experiences with neither dblink nor dbi-link. > They perferm only acceptably on very few records. > My approach now is to use srf plperl functions. That approach > requires you > to have a reasonable knowledge of perl, but is in my experience the > fastest > (or at least slow) one and certainly the most flexible one. > > > How would you use tables from different databases in the same select > using perl? You cannot. You would need to write a function that does the queries within it and joins the results within the function. Sean