J'ai installé, sur un serveur Windows 2008 R2, la version 9.0.4 (64 bits) en parallèle avec la version 8.4.4. Le port 5433 sera donc utilisé pour la nouvelle version. Bien que j'ai fait une sauvegarde pg_dumpall avant je voudrais utiliser l'utilitaire pg_upgrade, je lance donc la ligne de commande de test
Toutefois j'ai la réponse suivanteC:\Program Files\PostgreSQL\9.0\bin>pg_upgrade.exe --old-datadir "E:\PostgreSQL - Data" --new-datadir "E:\PostgreSQL - Data\9.0" --old-bindir "C:\Program Files (x86)\PostgreSQL\8.4\bin" --new-bindir "C:\Program Files\PostgreSQL\9.0\bin" --check --new-port=5433
Je prends donc mon fichier ancien pg_hba.conf et je remplace les options md5 par trust. Mais j'ai exactement la même réponse. Que se passe-t-il ?Performing Consistency Checks
-----------------------------
Checking old data directory (E:\PostgreSQL - Data) ok
Checking old bin directory (C:\Program Files (x86)\PostgreSQL\8.4\bin)ok
Checking new data directory (E:\PostgreSQL - Data\9.0) ok
Checking new bin directory (C:\Program Files\PostgreSQL\9.0\bin)ok
Trying to start old server .................ok
Unable to start old postmaster with the command: ""C:\Program Files (x86)\PostgreSQL\8.4\bin/pg_ctl" -l "nul" -D "E:\PostgreSQL - Data" -o "-p 5432 -c autovacuum=off -c autovacuum_freeze_max_age=2000000000" start >> "nul" 2>&1"
Perhaps pg_hba.conf was not set to "trust".
Si un érudit des migrations de versions de PostgreSQL pouvait m'éclairer je lui en serais très reconnaissant.
Partager