Background: I was migrating a system from one Ubuntu host to another and along with it a Postgresql database. Unfortunately I don't have access to the original server any longer and the backup file that I was going to use has corrupted.
I have been trying to reinstate the data directory of the postgresql database (of which I do have a filesystem copy) on the target server. However, every time I start Postgresql through init.d, I receieve the error message:
Could not determine cluster encoding
I have searched for this error message and found nothing and my knowledge of Postgresql does not stretch far enough to understand exactly what is causing the issue.
The original host was Ubuntu 8.04, the target 9.10 and both were/are running Postgresql 8.3 installed from the ubuntu default repositories.
Any insight you can give as to why this error might be occurring would be greatly appreciated.