Re: Problem with Java-SQL connection, postgresql.conf file

From: Markus Schaber <schabi(at)logix-tt(dot)com>
To: Christopher Bruhn <pandafisch(at)gmx(dot)de>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Problem with Java-SQL connection, postgresql.conf file
Date: 2006-09-15 09:28:29
Message-ID: 450A723D.4060703@logix-tt.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hi, Christopher,

Christopher Bruhn wrote:

> Moreover I searched for the postgresql.conf file but I could not find it
> among the files extracted from postgresql-8.2dev-503.jdbc3.jar.

> Can you tell me if I use the Driver in a wrong way, where I can find
> the postgresql.conf file and if I need to make changes in this file?

The postgresql.conf file is the main configuration file for the
PostgreSQL server. The exact place of installation depends on how the
Postmaster itsself is installed, but it is likely to be found in /etc or
the postgresql main cluster directory on unices.

If your postmaster is set up to only accept connections via unix
sockets, but not via TCP, then you have to change postgresql.conf and
pg_hba.conf. As all is on the same server, make him listen on 127.0.0.1
and allow access from there.

Btw, for testing, you can use command line access (if you have) and the
psql utility. If you can connect via "psql usr_web593_1", but not via
"psql -h localhost -p 5432 usr_web593_1" then postgresql does not accept
tcp connections via localhost.

Btw, it might also be that the server and client disagree on mandatory
SSL usage, but that likely leads to different exceptions.

Markus

--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf. | Software Development GIS

Fight against software patents in Europe! www.ffii.org
www.nosoftwarepatents.org

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Alex Stienstra 2006-09-15 10:16:25 metaresultset::getTableName() returns null?
Previous Message Albert Cardona 2006-09-15 00:26:21 Re: about monitoring the input stream