Re: [PORTS] Windows 95 PgAccess Help with PSQL

From: "G(dot) Anthony Reina" <reina(at)nsi(dot)edu>
To: Finn Kettner <fk(at)akf(dot)dk>, "pgsql-ports(at)postgresql(dot)org" <pgsql-ports(at)postgresql(dot)org>
Subject: Re: [PORTS] Windows 95 PgAccess Help with PSQL
Date: 1999-06-02 21:58:29
Message-ID: 3755A905.9E1B3D7D@nsi.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-ports

Finn Kettner wrote:

> On June 2. 1999 at 11:46 G. Anthony Reina wrote about [PORTS]
> Windows 95 PgAccess Help wi:
>
> > Files\PostgresSQL just fine. However, when I try 'psql db01' in a
> > DOS window, I get the following error:
> >
> > Connection to database 'db01' failed.
> > connectDB() -- socket() failed : errno=0
> > No error
>
> Use "psql -h ´hostname´ db01" where hostname is the name or the
> IP-address of your database (Linux) machine.
>
> use psql -h to get a small help from the command line, and \? when
> psql is started. sql statements to the backend is committed with an
> ending ´;´.
>
> At least that worked for me, but I couldn't do something
> like: "psql \\´hostname´:´dbname´" or even "psql \\´hostname´"
>
> Yours faithfully.
> Finn Kettner.

Thanks Finn. That did the trick.

Is there a way to set the DOS environment so that it recognizes the PG host?

For example, on my unix system I have:

setenv PGHOST host_computer_name

Browse pgsql-ports by date

  From Date Subject
Next Message Andrew McMurry 1999-06-03 09:41:29 NetBSD/arm32 port
Previous Message Bruce Momjian 1999-06-02 20:09:14 Re: [PORTS] Port Bug Report: Wild memory use for badly written SQL