Re: Accessing PostgreSQL from a remote host ?

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: Stéphane Pinel <spinel(at)noos(dot)fr>, pgsql-novice(at)postgresql(dot)org
Subject: Re: Accessing PostgreSQL from a remote host ?
Date: 2003-02-14 20:40:28
Message-ID: 200302141240.28164.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Stephane,

> As a newbie, I would like to know exactly what I have to
> do (and how) (on the server) in order to get a running connection to my
> PostgreSQL database from a remote host (using a GUI
> client).
>
> I'm going to get mad since I've tried everything I could
> read about this topic without any success for hours ;-)
>
> MacOS X 10.2.4
> PostgreSQL 7.3 (Marc Liyanage package)

It's easy:

1) Change your postgresql.conf file (which should be in Postgres' data
directory) so that the option reads:
tcpip_socket = true

2) Modify your pg_hba.conf file to allow connections from the host from which
you are trying to connect.

3) Restart PostgreSQL

4) Configure your remote client to look to your database host to connect with
the authentication method you indicated in 2.

Have fun!

--
-Josh Berkus
Aglio Database Solutions
San Francisco

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Adam Bultman 2003-02-14 21:20:33 Importing Postgres 7.1.1 DBs into Postgres 7.3.2
Previous Message Stéphane Pinel 2003-02-14 19:33:51 Accessing PostgreSQL from a remote host ?