agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
(no subject)
4+ messages / 3 participants
[nested] [flat]

* (no subject)
@ 2013-10-08 16:23  Kaleeswaran Velu <v_kalees@yahoo.com>
  0 siblings, 2 replies; 4+ messages in thread

From: Kaleeswaran Velu @ 2013-10-08 16:23 UTC (permalink / raw)
  To: pgsql-sql

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?
 
Thanks and Regards
Kaleeswaran Velu

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

* Re:
@ 2013-10-08 16:26  Plugge, Joe R. <JRPlugge@west.com>
  parent: Kaleeswaran Velu <v_kalees@yahoo.com>
  1 sibling, 0 replies; 4+ messages in thread

From: Plugge, Joe R. @ 2013-10-08 16:26 UTC (permalink / raw)
  To: Kaleeswaran Velu <v_kalees@yahoo.com>; pgsql-sql

1 - why two databases?  Couldn't you have just created two separate SCHEMAS?
2 - if you insist on two separate databases:   http://www.postgresql.org/docs/9.2/static/dblink.html


From: pgsql-sql-owner@postgresql.org [mailto:pgsql-sql-owner@postgresql.org] On Behalf Of Kaleeswaran Velu
Sent: Tuesday, October 08, 2013 11:23 AM
To: pgsql-sql@postgresql.org
Subject: [SQL]

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?

Thanks and Regards
Kaleeswaran Velu

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

* Re:
@ 2013-10-08 16:28  Andreas Kretschmer <akretschmer@spamfence.net>
  parent: Kaleeswaran Velu <v_kalees@yahoo.com>
  1 sibling, 1 reply; 4+ messages in thread

From: Andreas Kretschmer @ 2013-10-08 16:28 UTC (permalink / raw)
  To: pgsql-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



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

* Re:
@ 2013-10-10 03:54  Kaleeswaran Velu <v_kalees@yahoo.com>
  parent: Andreas Kretschmer <akretschmer@spamfence.net>
  0 siblings, 0 replies; 4+ messages in thread

From: Kaleeswaran Velu @ 2013-10-10 03:54 UTC (permalink / raw)
  To: Andreas Kretschmer <akretschmer@spamfence.net>; 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@spamfence.net> wrote:
 
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

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


end of thread, other threads:[~2013-10-10 03:54 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2013-10-08 16:23  Kaleeswaran Velu <v_kalees@yahoo.com>
2013-10-08 16:26 ` Re: Plugge, Joe R. <JRPlugge@west.com>
2013-10-08 16:28 ` Re: Andreas Kretschmer <akretschmer@spamfence.net>
2013-10-10 03:54   ` Re: Kaleeswaran Velu <v_kalees@yahoo.com>

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox