pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sean Davis <sdavis2@mail.nih.gov>
To: Loredana Curugiu <loredana.curugiu@gmail.com>
Cc: Bart.Degryse@indicator.be
Cc: pgsql-novice@postgresql.org
Cc: pgsql-jdbc@postgresql.org
Subject: Re: [NOVICE] Query with tables from 2 different databases inJava
Date: Thu, 07 Jun 2007 11:57:44 -0400
Message-ID: <46682AF8.1040901@mail.nih.gov> (raw)
In-Reply-To: <1c23c8e70706070850h7696955aw2bfc8cee38d7b43f@mail.gmail.com>
References: <1c23c8e70706070708m2f3be6f9o75571fd8a82ee390@mail.gmail.com>
	<4668154A.3090105@mail.nih.gov>
	<4668390D.A3DD.0030.0@indicator.be>
	<1c23c8e70706070850h7696955aw2bfc8cee38d7b43f@mail.gmail.com>

Loredana Curugiu wrote:
> 
> 
> On 6/7/07, *Bart Degryse* <Bart.Degryse@indicator.be
> <mailto:Bart.Degryse@indicator.be>> 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



view thread (12+ messages)  latest in thread

Message-ID: <46682AF8.1040901@mail.nih.gov>
Permalink:  ../46682AF8.1040901@mail.nih.gov/
Also on:    postgresql.org/message-id/46682AF8.1040901@mail.nih.gov

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: sdavis2@mail.nih.gov, loredana.curugiu@gmail.com, Bart.Degryse@indicator.be, pgsql-novice@postgresql.org
  Subject: Re: [NOVICE] Query with tables from 2 different databases inJava
  In-Reply-To: <46682AF8.1040901@mail.nih.gov>
  References: <1c23c8e70706070708m2f3be6f9o75571fd8a82ee390@mail.gmail.com> <4668154A.3090105@mail.nih.gov> <4668390D.A3DD.0030.0@indicator.be> <1c23c8e70706070850h7696955aw2bfc8cee38d7b43f@mail.gmail.com> <46682AF8.1040901@mail.nih.gov>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox