CS DBA <cs_dba(at)consistentstate(dot)com> writes:
> We're getting the following error when we try to run initdb on an AIX box:
> fgets failure: Error 0
> The program "postgres" is needed by initdb but was not found in the same
> directory as "/opt/app/postgres/904/bin/initdb".
> Check your installation.
This means that initdb tried to execute "postgres -V" and didn't get any
output. What happens when you try that directly?
regards, tom lane