Vista SP1 -> PostgreSQL won't start

Forum with tips, support, etc, on using the PostgreSQL database with Poker Tracker. Please post any PostgreSQL questions here.

Vista SP1 -> PostgreSQL won't start

Postby Zeatrix » Fri Mar 21, 2008 5:14 am

Installed Vista Service Pack 1 last night and realized this morning that PostgreSQL won't start now. Tried uninstalling PostgreSQL and installed version 8.2.7 but it did not help. Also re-created the PostreSQL windows user account.

Anyone have some suggestions?
Zeatrix
 
Posts: 9
Joined: Fri Mar 21, 2008 5:09 am

Re: Vista SP1 -> PostgreSQL won't start

Postby ptrack pat » Fri Mar 21, 2008 8:54 am

Go to the c:\program files\postgresql\8.2\data folder. Is there a file called postmaster.pid there? If so, delete it then restart the computer and try it again.
ptrack pat
 
Posts: 4841
Joined: Sun Dec 09, 2007 12:38 pm

Re: Vista SP1 -> PostgreSQL won't start

Postby Zeatrix » Fri Mar 21, 2008 9:00 am

Good suggestion, it was ONE of the problems.

However, after spending 2-3 hours looking for the cause I finally, by chance, found it. When installing Windows Vista Service Pack 1 it seems this line is added to the "hosts" file in C:\windows\system32\drivers\etc
::1 localhost

This makes a call to localhost use the IPv6 adress instead of the IPv4 (127.0.0.1)

For some reason (I can't remember) I have this set in my pg_hba file:

# IPv6 local connections:
host all all ::1/128 trust

If set to md5 instead of trust it works.

Man, this took a LONG time to figure out...
Zeatrix
 
Posts: 9
Joined: Fri Mar 21, 2008 5:09 am


Return to PostgreSQL Forum

Who is online

Users browsing this forum: No registered users and 16 guests

cron