"Nik" <XLPizza@xxxxxxxxx> writes: > Ok, I simplified the problem. I tried just running psql from the > command line, and I noticed that it opens two connection on two > different ports, and it closes only one. > For example I do the following in the command prompt: > C:\> psql -h host_name -p 5432 -d db_name -U user_name > Password: > 2006-01-19 09:50:29 [unknown] LOG: connection received: host=client1 > port=3775 > 2006-01-19 09:50:31 [unknown] LOG: connection received: host=client1 > port=3778 > 2006-01-19 09:50:31 test LOG: connection authorized: user=user_name > database=db_name It tries to connect, gets told it needs a password (the log verbosity level is not high enough to record the rejection), asks you for the password, and connects again. I don't see anything funny here. regards, tom lane