Re: [GENERAL] Two Machines - Question

From: James Thompson <jamest(at)math(dot)ksu(dot)edu>
To: Paul Nelson <pjnelson(at)iwaynet(dot)net>
Cc: pgsql-general(at)postgreSQL(dot)org
Subject: Re: [GENERAL] Two Machines - Question
Date: 1999-02-15 16:54:42
Message-ID: Pine.LNX.4.10.9902151048250.619-100000@hobbes.math.ksu.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, 15 Feb 1999, Paul Nelson wrote:

> Can I run Postgres on one machine (Linux) and access it from another
> machine (Linux / Apache web server)?
>

I haven't tried the Apache interface but it can't image there being any
troubles. I myself have used libpg, ecpg, and psql from remote clients
without trouble once the postgresql server is configured to accept remote
connections from that client.

The libpg, ecpg both accept the server name or IP address as part of their
connect string, I bet that the apache module does as well.

psql works like this

psql -h servername.domain.org -u databasename
-h provides the host name or ip address
-u forces pgsl to request username/password (I need this since I use
crypt authentication)

Hope this helps

->->->->->->->->->->->->->->->->->->---<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<
James Thompson 138 Cardwell Hall Manhattan, Ks 66506 785-532-0561
Kansas State University Department of Mathematics
->->->->->->->->->->->->->->->->->->---<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<-<

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Gilles Darold 1999-02-15 17:00:47 Re: [GENERAL] Two Machines - Question
Previous Message Paul Nelson 1999-02-15 16:31:50 Two Machines - Question