From: Adrian Alb <adrian@stockgroup.com>
To: pgsql-sql@hub.org
Subject: Re: remote database connection
Date: Tue, 14 Sep 1999 22:41:24 -0700
Message-ID: <37DF3183.B585FE70@stockgroup.com> (raw)
References: <199909150300.XAA04368@hub.org>
> Date: Mon, 13 Sep 1999 20:14:04 -0700
> From: "Eid, Bilal" <Bilal_Eid@NAI.com>
> Subject: remote database connection
>
> Hi every one,
>
> Any help will be appreciated,
>
> I'm running PosygreSQL 6.4 (that come on the Redhat Linux 6.0 CD) and iodbc
> 2.5.
> I developed an application to access the database through iodbc; every thing
> was fine regarding the database and its applications.
>
> I tried to trace the error and I got these:
> Could not connect to server;
> Could not connect to remote socket;
>
This could be the reason: you are not starting postmaster with -i option or
postmaster is listening to a different port than you have specified in your DSN.
You can check the postmaster's port by doing: ls -la /tmp/.*PGSQL* and the
result should be like:
srwxrwxrwx 1 postgres postgres /tmp/.s.PGSQL.5432
where 5432 is the port number (or whatever port you're using).
Change your DSN to match this port.
If ls result is "no such file ..." you probably didn't start postmaster with -i.
Adrian Alb
UNIX Sys Admin
StockGroup.COM
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: adrian@stockgroup.com, pgsql-sql@hub.org
Subject: Re: remote database connection
In-Reply-To: <37DF3183.B585FE70@stockgroup.com>
References: <199909150300.XAA04368@hub.org> <37DF3183.B585FE70@stockgroup.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox