agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Andreas Kretschmer <akretschmer@spamfence.net>
To: pgsql-sql@postgresql.org
Subject: Re:
Date: Tue, 8 Oct 2013 18:28:09 +0200
Message-ID: <20131008162809.GA7413@tux> (raw)
In-Reply-To: <1381249389.79519.YahooMailNeo@web163904.mail.gq1.yahoo.com>
References: <1381249389.79519.YahooMailNeo@web163904.mail.gq1.yahoo.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>
Kaleeswaran Velu <v_kalees@yahoo.com> wrote:
> Hi Team,
> I am using PostgreSQL 9.2.3 in Windows platform. I have created two databases
> in it. Now I want to refer the tables across the databases. Meaning would like
> to create Database link. Can anyone guide me on how to create a DB link?
You can use db_link, see
http://www.postgresql.org/docs/9.2/interactive/dblink.html.
9.3 contains more:
http://www.postgresql.org/docs/9.3/interactive/postgres-fdw.html
But in general: don't use different databases if you need a
cross-database-connection. You can use Schemas instead:
http://www.postgresql.org/docs/9.2/static/ddl-schemas.html
Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknown)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°
--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
view thread (4+ messages) latest in thread
Message-ID: <20131008162809.GA7413@tux>
Permalink: ../20131008162809.GA7413@tux/
Also on: postgresql.org/message-id/20131008162809.GA7413@tux
reply
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: akretschmer@spamfence.net
Subject: Re:
In-Reply-To: <20131008162809.GA7413@tux>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox