I am trying to use pg_upgrade to upgrade postgres server from 9.3 to 9.6. I have both binaries on the windows server R8.
Here are the 2 pg_hba.conf :
> 9.3 :
# TYPE DATABASE USER ADDRESS METHOD
# IPv4 local connections:
#local all all 127.0.0.1/32 TRUST
host all all 127.0.0.1/32 TRUST
host all all 10.0.0.0/8 md5
9.6 :
# TYPE DATABASE USER ADDRESS METHOD
# IPv4 local connections:
#local all all 127.0.0.1/32 TRUST
host all all 127.0.0.1/32 TRUST
host all all 10.0.0.0/8 md5
- I have all permissions on the directories.
- From 9.6 bin I execute :
pg_upgrade.exe path_of_oldbin path_of_newbin path_of_olddata path_of_newdata
All I got is :
connection to database failed : could not connect to server : connection refused
I tried unsuccessfully some different config (local) as you see in pg_hba.conf, but can't find the reason why it can't connect. Any idea ?
pg_hba.conf
is even reached. Are you sure the DB accepting connections on that port?listen_addresses
inpostgresql.conf
?