Re: [PORTS] Windows 95 PgAccess Help with PSQL - Mailing list pgsql-ports

From G. Anthony Reina
Subject Re: [PORTS] Windows 95 PgAccess Help with PSQL
Date
Msg-id 3755A905.9E1B3D7D@nsi.edu
Whole thread Raw
List 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




pgsql-ports by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [PORTS] Port Bug Report: Wild memory use for badly written SQL
Next
From: Andrew McMurry
Date:
Subject: NetBSD/arm32 port