From: Gregory S. Williamson <gsw@globexplorer.com>
To: Garth Thompson <garth@opsource.net>
To: pgsql-sql@postgresql.org
Subject: Re: Queries across multiple database
Date: Wed, 30 Jun 2004 16:14:45 -0700
Message-ID: <71E37EF6B7DCC1499CEA0316A2568328DC9D18@loki.wc.globexplorer.net> (raw)
Although postgres itself doesn't seem to have a thing such as Informix' "synonym" which allows more-or-less transparent access to a table in a remote database, there is a utility in contrib directory of the postgres source called dblink, which allows access to different instance of postgres by opening connections. I have only played with it for testing and have no idea of its limitations, but it might serve your needs.
Greg Williamson
DBA
GlobeXplorer LLC
-----Original Message-----
From: Garth Thompson [mailto:garth@opsource.net]
Sent: Wednesday, June 30, 2004 3:54 PM
To: pgsql-sql@postgresql.org
Subject: [SQL] Queries across multiple database
I am in the process of migrating the databases for an application from mysql
to postgres. The application is uses several different databases. From
what I have read, postgres still does not support queries across multiple
databases. If this is still true, does anyone have any tricks to get around
this? I'm sure this is a common problem for people migrating from mysql.
The obvious answer is to just migrate everything into one larger postgres
database, but I would like to avoid this if possible - many a line of could
would need to be touched if this was done.
Thanks,
Garth
---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster
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-sql@postgresql.org
Cc: gsw@globexplorer.com, garth@opsource.net
Subject: Re: Queries across multiple database
In-Reply-To: <71E37EF6B7DCC1499CEA0316A2568328DC9D18@loki.wc.globexplorer.net>
References: <71E37EF6B7DCC1499CEA0316A2568328DC9D18@loki.wc.globexplorer.net>
* 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