pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Queries across multiple database
3+ messages / 3 participants
[nested] [flat]

* Queries across multiple database
@ 2004-06-30 22:54 Garth Thompson <garth@opsource.net>
  2004-06-30 23:19 ` Re: Queries across multiple database Rod Taylor <pg@rbt.ca>
  0 siblings, 1 reply; 3+ messages in thread

From: Garth Thompson @ 2004-06-30 22:54 UTC (permalink / raw)
  To: pgsql-sql


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




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Queries across multiple database
  2004-06-30 22:54 Queries across multiple database Garth Thompson <garth@opsource.net>
@ 2004-06-30 23:19 ` Rod Taylor <pg@rbt.ca>
  0 siblings, 0 replies; 3+ messages in thread

From: Rod Taylor @ 2004-06-30 23:19 UTC (permalink / raw)
  To: Garth Thompson <garth@opsource.net>; +Cc: pgsql-sql

On Wed, 2004-06-30 at 18:54, Garth Thompson wrote:
> 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.

In this case, a PostgreSQL Schema is essentially the same as a MySQL
Database.

Use one database, and multiple schemas.





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Queries across multiple database
@ 2004-06-30 23:14 Gregory S. Williamson <gsw@globexplorer.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Gregory S. Williamson @ 2004-06-30 23:14 UTC (permalink / raw)
  To: Garth Thompson <garth@opsource.net>; pgsql-sql

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2004-06-30 23:19 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-06-30 22:54 Queries across multiple database Garth Thompson <garth@opsource.net>
2004-06-30 23:19 ` Rod Taylor <pg@rbt.ca>
2004-06-30 23:14 Re: Queries across multiple database Gregory S. Williamson <gsw@globexplorer.com>

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