From: Roberto Mello <rmello@cc.usu.edu>
To: Tiago Moitinho <tmoitinho@hotmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: Select table from other database
Date: Mon, 21 Oct 2002 08:21:57 -0600
Message-ID: <20021021142156.GB13464@cc.usu.edu> (raw)
In-Reply-To: <F77FuXCpU6q5ijb1u2Z000007e0@hotmail.com>
References: <F77FuXCpU6q5ijb1u2Z000007e0@hotmail.com>
On Mon, Oct 21, 2002 at 11:54:53AM +0100, Tiago Moitinho wrote:
> Hi,
>
> I would like to know if this is possible:
>
> I have a database A, with a table X.
> Is it possible, being logged in another database (B, for instance), to make
> queries using table X from database A?
> (something like "SELECT * FROM A.X ...")
See the dblink module in the PostgreSQL contrib tree (available via ftp.
packages available).
-Roberto
--
+----| Roberto Mello - http://www.brasileiro.net/ |------+
+ Computer Science Graduate Student, Utah State University +
+ USU Free Software & GNU/Linux Club - http://fslc.usu.edu/ +
Sigh. I like to think it's just the Linux people who want to be on
the "leading edge" so bad they walk right off the precipice.
-- Craig E. Groeschel
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: rmello@cc.usu.edu, tmoitinho@hotmail.com
Subject: Re: Select table from other database
In-Reply-To: <20021021142156.GB13464@cc.usu.edu>
* 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