>> psql: FATAL 1: cannot open /usr/local/pgsql/data/global/pg_database: No such file or directory
> Not sure why you are getting such a message, but it strikes me that you
> may have a corrupted set of sources, ie, some out-of-date files. Have
> you tried doing a fresh cvs checkout and build from scratch?
To be more specific, I suspect that would be coming out of
GetRawDatabaseInfo if compiled with OLD_FILE_NAMING defined. Possibly
you have an old config.h (have you rerun configure lately?) or neglected
to do a make clean before rebuilding.
regards, tom lane