pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michiel Lange <michiel@minas.demon.nl>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Michiel Lange <michiel@minas.demon.nl>
Cc: pgsql-admin@postgresql.org
Subject: Re: Cannot connect to the database (PG 7.3)
Date: Mon, 27 Jan 2003 19:16:32 +0100
Message-ID: <5.1.0.14.0.20030127191100.00b34ba8@192.168.1.3> (raw)
In-Reply-To: <25386.1043676650@sss.pgh.pa.us>
References: <5.1.0.14.0.20030127141542.00b34a88@192.168.1.3>
	<5.1.0.14.0.20030127011523.00b33440@192.168.1.3>
	<5.1.0.14.0.20030127011523.00b33440@192.168.1.3>
	<5.1.0.14.0.20030127141542.00b34a88@192.168.1.3>

but, but.... it is even with the psql command...
it will differ if I put a -U parameter with postgres or 20020003
postgres, michiel or most other names will connect fine, however the user 
20020003 will not...
I get that FATAL error... all users should be able to connect to the 
database, according to pg_hba.conf
and when I do: SELECT * FROM pg_user; I get all users, including 20020003 
returned... and 20030003 has userid 106, which is mentioned in the list 
SELECT * FROM pg_group; so, the account should be set up correctly. A ALTER 
USER 20020003 WITH ... has not helped either, but I am very certain the 
user exists... but is not allowed to connect to the database...

But I will try to see what happens with query logging... never thought that 
connecting would issue a query as well... not so strange an idea though... 
I'll check it out...

Michiel

At 09:10 27-1-2003 -0500, Tom Lane wrote:
>Michiel Lange <michiel@minas.demon.nl> writes:
> > it is pretty strange... might it be a bug?
>
>I'm quite sure it's a bug in your code.  Try turning on query logging so
>you can see what queries are being issued; maybe that will help solve
>the problem.
>
>                         regards, tom lane





view thread (16+ messages)  latest in thread

Message-ID: <5.1.0.14.0.20030127191100.00b34ba8@192.168.1.3>
Permalink:  ../5.1.0.14.0.20030127191100.00b34ba8@192.168.1.3/
Also on:    postgresql.org/message-id/5.1.0.14.0.20030127191100.00b34ba8@192.168.1.3

 · 

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-admin@postgresql.org
  Cc: michiel@minas.demon.nl, tgl@sss.pgh.pa.us
  Subject: Re: Cannot connect to the database (PG 7.3)
  In-Reply-To: <5.1.0.14.0.20030127191100.00b34ba8@192.168.1.3>
  References: <5.1.0.14.0.20030127141542.00b34a88@192.168.1.3> <5.1.0.14.0.20030127011523.00b33440@192.168.1.3> <5.1.0.14.0.20030127191100.00b34ba8@192.168.1.3>

* 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