X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6AA6AD1B1B6 for ; Wed, 30 Jun 2004 20:14:51 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 51669-02 for ; Wed, 30 Jun 2004 23:14:48 +0000 (GMT) Received: from loki.globexplorer.com (unknown [208.35.14.101]) by svr1.postgresql.org (Postfix) with ESMTP id DE693D1B18C for ; Wed, 30 Jun 2004 20:14:43 -0300 (ADT) X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Re: Queries across multiple database Date: Wed, 30 Jun 2004 16:14:45 -0700 Message-ID: <71E37EF6B7DCC1499CEA0316A2568328DC9D18@loki.wc.globexplorer.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [SQL] Queries across multiple database Thread-Index: AcRe9qoh0k9NjANzRqO+k2K31oESAgAA6JyQ From: "Gregory S. Williamson" To: "Garth Thompson" , X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/306 X-Sequence-Number: 18251 Although postgres itself doesn't seem to have a thing such as Informix' "sy= nonym" 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 ca= lled dblink, which allows access to different instance of postgres by openi= ng 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