Re: [NOVICE] Query with tables from 2 different databases inJava

Поиск
Список
Период
Сортировка
От Bart Degryse
Тема Re: [NOVICE] Query with tables from 2 different databases inJava
Дата
Msg-id 4668390D.A3DD.0030.0@indicator.be
обсуждение исходный текст
Ответ на Re: [NOVICE] Query with tables from 2 different databases in Java  (Sean Davis <sdavis2@mail.nih.gov>)
Ответы Re: [NOVICE] Query with tables from 2 different databases inJava  ("Loredana Curugiu" <loredana.curugiu@gmail.com>)
Re: [NOVICE] Query with tables from 2 different databases inJava  (Richard Broersma Jr <rabroersma@yahoo.com>)
Список pgsql-jdbc
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.

>>> Sean Davis <sdavis2@mail.nih.gov> 2007-06-07 16:25 >>>
Loredana Curugiu wrote:
> Hi,
>
> I need a query to use tables from 2 different databases and
> that query to be executed from a .java file. What do you recommand?

Hi, Loredana.  You can't execute a query that includes two different
databases in postgresql.  However, you may want to look at the dblink
contributed module (in contrib/dblink in the postgresql source) that
provides an extension to do this.  I have no idea how this will behave
in the context of a java client, though.

Sean

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
       choose an index scan if your joining column's datatypes do not
       match

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: "Tomeh, Husam"
Дата:
Сообщение: Re: [NOVICE] Query with tables from 2 different databases in Java
Следующее
От: "Loredana Curugiu"
Дата:
Сообщение: Re: [NOVICE] Query with tables from 2 different databases inJava