"Josh Berkus" <josh@agliodbs.com> writes:
>> The program
>> '/usr/local/pgsql/bin/postgres'
>> needed by initdb does not belong to PostgreSQL version 7.1.3, or
>> there may be a configuration problem.
>>
>> There doesn't seem to be much of a clue as to what is going wrong.
> It means what it says. All files in /usr/local/pgsql and below should
> belong to postgres:users (or whomever is the Postgres master user). If
> they belong to root:root, Postgres will not run.
Actually they *can* belong to root, as long as you don't try to execute
them as root. I believe this error message is a version-mismatch
complaint, not a file-permissions issue. Check to see whether
you don't have an older version of postgres installed in your PATH.
regards, tom lane