Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 1326B2E0043 for ; Tue, 5 Feb 2008 17:21:59 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 74430-04 for ; Tue, 5 Feb 2008 17:21:53 -0400 (AST) Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.237]) by postgresql.org (Postfix) with ESMTP id 617582E35C2 for ; Tue, 5 Feb 2008 17:21:52 -0400 (AST) Received: by qb-out-0506.google.com with SMTP id o24so2222770qba.1 for ; Tue, 05 Feb 2008 13:21:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=acMht+07hKJlaYcGwcI7grgi8GTuImZXLrHkubL3dvg=; b=QxI3KFboTZqg/uOMvx0ikgMV9ooMrWPdNTonuSvR4sDbwhef4EtGzTButZqz+K4VCvsUxgxdf8Co0rN+1I4+RZfuWIhew0keFlkv5A5OcH/jHVQ57u01tWGbmJiV5MWKuTj/KDXz2p83+tNESHGPp+K9vvT39zPHIHvvbJ9kqrE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=xqniVKaF8E05cfaSgRAH7O/uW4EYzBwANJ+q+e5Bsg0OKDjeQ7zaeY2urIm6xZtuACbmSRHz87Kx7/fTDyXkr1AotwqL9yzrDQWSGw5hB9D1rrMfzRNvzm1mWG4KJHXmSHgAwgeGWMpA7ZO7q3eU8vtWqwIyM/8xDV7bRfDovvc= Received: by 10.65.212.3 with SMTP id o3mr16744521qbq.30.1202246510381; Tue, 05 Feb 2008 13:21:50 -0800 (PST) Received: by 10.64.204.3 with HTTP; Tue, 5 Feb 2008 13:21:50 -0800 (PST) Message-ID: <4df751bf0802051321l9ce663dm18590c9c7409fb9c@mail.gmail.com> Date: Tue, 5 Feb 2008 16:21:50 -0500 From: "Brian Tomaszewski" To: "Tom Lane" Subject: Re: JDBC connection problem Cc: "Dave Cramer" , "Guy Rouillier" , pgsql-jdbc@postgresql.org In-Reply-To: <23514.1202232466@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_12371_411489.1202246510384" References: <4df751bf0802041918nafe3dc4na662592641a56a5b@mail.gmail.com> <47A7FCC0.1020201@burntmail.com> <4df751bf0802050517qf027f50xd50d90de9166db1c@mail.gmail.com> <79033F6E-43A8-498F-9390-C58658339C4D@fastcrypt.com> <4df751bf0802050631udddf42o62acace6e21d08ae@mail.gmail.com> <4df751bf0802050802x1239b6d5s607127cbdbc0dd80@mail.gmail.com> <23514.1202232466@sss.pgh.pa.us> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/18 X-Sequence-Number: 18225 ------=_Part_12371_411489.1202246510384 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 wrote: > "Brian Tomaszewski" 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 > ------=_Part_12371_411489.1202246510384 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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

------=_Part_12371_411489.1202246510384--