From: | Kaleeswaran Velu <v_kalees(at)yahoo(dot)com> |
---|---|
To: | Andreas Kretschmer <akretschmer(at)spamfence(dot)net>, "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: |
Date: | 2013-10-10 03:54:22 |
Message-ID: | 1381377262.90340.YahooMailNeo@web163902.mail.gq1.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Ok, got it. Thank you every one for your response.
Thanks and Regards
Kaleeswaran Velu
On Tuesday, October 8, 2013 10:00 PM, Andreas Kretschmer <akretschmer(at)spamfence(dot)net> wrote:
Kaleeswaran Velu <v_kalees(at)yahoo(dot)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°
From | Date | Subject | |
---|---|---|---|
Next Message | Gary Stainburn | 2013-10-10 10:26:50 | generate a range within a view |
Previous Message | David Johnston | 2013-10-10 01:11:42 | Re: Question about index/constraint definition in a table |