Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 16EE0632D92 for ; Fri, 27 Feb 2009 18:43:08 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 80766-07 for ; Fri, 27 Feb 2009 18:42:59 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-gx0-f176.google.com (mail-gx0-f176.google.com [209.85.217.176]) by mail.postgresql.org (Postfix) with ESMTP id 841A76322AC for ; Fri, 27 Feb 2009 18:42:59 -0400 (AST) Received: by gxk24 with SMTP id 24so3564266gxk.19 for ; Fri, 27 Feb 2009 14:42:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=hHAukXjqeTRfVnskGWZa2Q+VSVfPpjH1ybGGm1oYF88=; b=pyPc2G8MRrYvh1C8IJRdkSuToezhPjn9H6EWjF0HOhE/QR7+oD2T+YSNNarpJJ/7s+ Owk4nv7kz7yb0VKAoKYnYIAMImNLFLcr6Uy+N7gn9ye0p5yXMo84iLgAsJ8AyvXlSO5O /B5qQgcwWGXtAfRE14YNxUB5IOKXECwWqoBGE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=U4ezQIKbsfp5TOjNhETg8xJeHQuNWI8TYBJpQwEgzDT+wbLiU+faFFCbm41q5Zwnbg yM/LkQShP7rH+pPADbV12sGSpcvu8f5ZABqWYoxH6ENuaZ54IRv+fP/a9KSjSiCJReKi OGUP7j1aiuE5iw1lc0y4giizGjO4yw/Oy8Lm4= MIME-Version: 1.0 Received: by 10.151.78.12 with SMTP id f12mr4809011ybl.67.1235774578243; Fri, 27 Feb 2009 14:42:58 -0800 (PST) In-Reply-To: <33039DBDED22BE47B9F45999ED0D7A0409926B@XMBTX143.northgrum.com> References: <33039DBDED22BE47B9F45999ED0D7A0409926B@XMBTX143.northgrum.com> Date: Fri, 27 Feb 2009 15:42:58 -0700 Message-ID: Subject: Re: Fatal: Database does not exist From: Scott Marlowe To: "Suvanaket, Dear (MS)" Cc: pgsql-admin@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200902/263 X-Sequence-Number: 31484 On Fri, Feb 27, 2009 at 2:41 PM, Suvanaket, Dear (MS) wrote: > > Hi, > > I get the error "FATAL: Database "xxx" does not exist" when trying to > connect to the database using JDBC. The superuser "postgres" owns my > database and tables. However, it seems I can only connect to the database > when the username matches the name of the database I am connecting to. I What does your pg_hba.conf file say?