From: Bruce Momjian <pgman@candle.pha.pa.us>
To: a.hitter@hmd-software.com
Cc: pgsql-odbc@postgresql.org
Cc: inoue@postgresql.org
Subject: Re: select between two databases
Date: Sun, 1 Jun 2003 00:32:43 -0400 (EDT)
Message-ID: <200306010432.h514Whq07343@candle.pha.pa.us> (raw)
In-Reply-To: <DIIE.0000118E00074AE8@hmd-software.com>
The best way is to use /contrib/dblink in the source tree. In 7.3, you
can even return tables, not just single variables.
---------------------------------------------------------------------------
a.hitter@hmd-software.com wrote:
> Dear Support,
>
> I don't know how I can select between two databases on the same postgres-server? Does postgres support it? I have tested some ways but none of them was right:
>
> SELECT s.adresscode FROM db02.adressen a,sachbearbeiter s WHERE a.adresscode=s.adresscode
> Error message: Namespace "db02" does not exist
>
> SELECT '' FROM db02.adressen
> Error message: Namespace "db02" does not exist
>
> Thanks a lot in Advance
> Andreas Hitter
> hmd-software AG
> Munich - Germany
>
> To: pgsql-odbc@postgresql.org
> inoue@postgresql.org
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
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-odbc@postgresql.org
Cc: pgman@candle.pha.pa.us, a.hitter@hmd-software.com, inoue@postgresql.org
Subject: Re: select between two databases
In-Reply-To: <200306010432.h514Whq07343@candle.pha.pa.us>
References: <DIIE.0000118E00074AE8@hmd-software.com> <200306010432.h514Whq07343@candle.pha.pa.us>
* 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