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

* select across two databases
@ 1998-05-27 12:03 The Hermit Hacker <scrappy@hub.org>
  0 siblings, 0 replies; 3+ messages in thread

From: The Hermit Hacker @ 1998-05-27 12:03 UTC (permalink / raw)
  To: pgsql-sql; +Cc: Dirk Lutzebaeck <lutzeb@cs.tu-berlin.de>



hi,

when I have two databases say db1 and db2 can there be a select
statement which accesses both databases eg.

select * from db1.t1,db2.t2 (which is illegal syntax in postgresql but 
legal in informix)

Is there another way to select several databases/namespaces at once?


Dirk




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

* SELECT across two databases
@ 1998-05-27 14:35 Dirk Lutzebaeck <lutzeb@cs.tu-berlin.de>
  1998-05-27 16:34 ` Re: [SQL] SELECT across two databases David Hartwig <daveh@insightdist.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Dirk Lutzebaeck @ 1998-05-27 14:35 UTC (permalink / raw)
  To: pgsql-sql


hi,

when I have two databases say db1 and db2 can there be a select
statement which accesses both databases eg.

select * from db1.t1,db2.t2 (which is illegal syntax in postgresql but 
legal in informix)

Is there another way to select several databases/namespaces at once?


Dirk



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

* Re: [SQL] SELECT across two databases
  1998-05-27 14:35 SELECT across two databases Dirk Lutzebaeck <lutzeb@cs.tu-berlin.de>
@ 1998-05-27 16:34 ` David Hartwig <daveh@insightdist.com>
  0 siblings, 0 replies; 3+ messages in thread

From: David Hartwig @ 1998-05-27 16:34 UTC (permalink / raw)
  To: Dirk Lutzebaeck <lutzeb@cs.tu-berlin.de>; +Cc: pgsql-sql

PostgreSQL does not support this feature at this time.   And, I would not
expect it any time soon.  You would have to either code such a join by
hand.

There is one other option.    Many ODBC compliant tools will support
multi-data source joins.    However this solution may perform poorly
because one side of the join may iteratively query one of the data
sources.   Your call.

Irk Lutzebaeck wrote:

> hi,
>
> when I have two databases say db1 and db2 can there be a select
> statement which accesses both databases eg.
>
> select * from db1.t1,db2.t2 (which is illegal syntax in postgresql but
> legal in informix)
>
> Is there another way to select several databases/namespaces at once?
>
> Dirk






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


end of thread, other threads:[~1998-05-27 16:34 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1998-05-27 12:03 select across two databases The Hermit Hacker <scrappy@hub.org>
1998-05-27 14:35 SELECT across two databases Dirk Lutzebaeck <lutzeb@cs.tu-berlin.de>
1998-05-27 16:34 ` Re: [SQL] SELECT across two databases David Hartwig <daveh@insightdist.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