pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brian Tomaszewski <brianbanjo@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Dave Cramer <pg@fastcrypt.com>
Cc: Guy Rouillier <guyr-ml1@burntmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC connection problem
Date: Tue, 5 Feb 2008 16:21:50 -0500
Message-ID: <4df751bf0802051321l9ce663dm18590c9c7409fb9c@mail.gmail.com> (raw)
In-Reply-To: <23514.1202232466@sss.pgh.pa.us>
References: <4df751bf0802041918nafe3dc4na662592641a56a5b@mail.gmail.com>
	<47A7FCC0.1020201@burntmail.com>
	<4df751bf0802050517qf027f50xd50d90de9166db1c@mail.gmail.com>
	<79033F6E-43A8-498F-9390-C58658339C4D@fastcrypt.com>
	<4df751bf0802050631udddf42o62acace6e21d08ae@mail.gmail.com>
	<F9AF71B0-A47B-49FB-A475-5A3A8FDDD5A2@fastcrypt.com>
	<4df751bf0802050802x1239b6d5s607127cbdbc0dd80@mail.gmail.com>
	<23514.1202232466@sss.pgh.pa.us>

All,

Thanks for the time and tips. Turned out to be a really stupid error - there
was on old version of postres on the server that had taken port 5432, and my
app was trying to connect to it (hence why the database wasn't being found),
when it should have been connecting to the correct, newer instance of
postres

I found this out by doing this command as Tom recommended:

$ psql -h localhost -l
psql: could not connect to server: Connection refused
        Is the server running on host "localhost" and accepting
        TCP/IP connections on port 5433?

And noticing the 5433...

A colleague of mine also noticed the multiple ports, and we now have things
cleared up.

Thanks again everyone for the replies/comments

Brian

On Feb 5, 2008 12:27 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:

> "Brian Tomaszewski" <brianbanjo@gmail.com> writes:
> > Does "it" refer to the postgres server? if so, how do I check that it is
> > listening on a TCPIP port? (sorry if this sounds trivial, I am
> relatively
> > new to postgres on linux)
>
> try psql -h localhost -l
>
>                        regards, tom lane
>

view thread (18+ messages)

Message-ID: <4df751bf0802051321l9ce663dm18590c9c7409fb9c@mail.gmail.com>
Permalink:  ../4df751bf0802051321l9ce663dm18590c9c7409fb9c@mail.gmail.com/
Also on:    postgresql.org/message-id/4df751bf0802051321l9ce663dm18590c9c7409fb9c@mail.gmail.com

 · 

reply

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-jdbc@postgresql.org
  Cc: brianbanjo@gmail.com, tgl@sss.pgh.pa.us, pg@fastcrypt.com, guyr-ml1@burntmail.com
  Subject: Re: JDBC connection problem
  In-Reply-To: <4df751bf0802051321l9ce663dm18590c9c7409fb9c@mail.gmail.com>
  References: <4df751bf0802041918nafe3dc4na662592641a56a5b@mail.gmail.com> <47A7FCC0.1020201@burntmail.com> <4df751bf0802050517qf027f50xd50d90de9166db1c@mail.gmail.com> <79033F6E-43A8-498F-9390-C58658339C4D@fastcrypt.com> <4df751bf0802050631udddf42o62acace6e21d08ae@mail.gmail.com> <F9AF71B0-A47B-49FB-A475-5A3A8FDDD5A2@fastcrypt.com> <4df751bf0802050802x1239b6d5s607127cbdbc0dd80@mail.gmail.com> <23514.1202232466@sss.pgh.pa.us> <4df751bf0802051321l9ce663dm18590c9c7409fb9c@mail.gmail.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