From: Sean Davis <sdavis2@mail.nih.gov>
To: Loredana Curugiu <loredana.curugiu@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Cc: pgsql-novice@postgresql.org
Subject: Re: [NOVICE] Query with tables from 2 different databases in Java
Date: Thu, 07 Jun 2007 10:25:14 -0400
Message-ID: <4668154A.3090105@mail.nih.gov> (raw)
In-Reply-To: <1c23c8e70706070708m2f3be6f9o75571fd8a82ee390@mail.gmail.com>
References: <1c23c8e70706070708m2f3be6f9o75571fd8a82ee390@mail.gmail.com>
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
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, pgsql-novice@postgresql.org
Subject: Re: [NOVICE] Query with tables from 2 different databases in Java
In-Reply-To: <4668154A.3090105@mail.nih.gov>
References: <1c23c8e70706070708m2f3be6f9o75571fd8a82ee390@mail.gmail.com> <4668154A.3090105@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