Re: How to commuciate between two server in postgress

From: Richard Huxton <dev(at)archonet(dot)com>
To: asfar khan <asfar_mu(at)yahoo(dot)co(dot)uk>, List <pgsql-general(at)postgresql(dot)org>
Subject: Re: How to commuciate between two server in postgress
Date: 2005-11-24 14:22:21
Message-ID: 4385CC9D.4040000@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Don't forget to CC: the list - that way everyone can help.

asfar khan wrote:
>
> My problem is that I have two postgress server on window platform. I
> would like to know how to communicate between them.

Ah - can't help you here. I don't run PG on Windows. Is there an option
on the installer?

> 1-> What database entries I have to do in postgress folder. As in
> oracle, we give IP Address of machine in the tnsname.ora file. Here
> in which particular file I have to place the entry.
>
> 2-> Any specific .sql file, I have to run?

Well, on the various *nix systems there is a contrib/dblink folder in
the source tarball with a Makefile, small C library and a dblink.sql
file with a bunch of "create function" entries. Notes are in
README.dblink and there are some examples too.

> 3-> Then how to create the dblink, if suppose I want to access the
> table of one server to another vice-versa?

There's a dblink_connect(...) function.

> Please reply, as I need its urgently.

Check the installer as step 1. While that's happening you can always
download the source tarball in the background - look in the contrib
directory for all the documentation etc.

--
Richard Huxton
Archonet Ltd

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2005-11-24 14:48:56 Re: "invalid page header in block 597621 of relation..."error
Previous Message Adam Witney 2005-11-24 12:23:50 Re: "invalid page header in block 597621 of relation..."error