"Carmical Casey" <ccarmical(at)hotmail(dot)com> writes:
> I reinstalled postgres, and now I am getting the following error when
> trying to add a database:
> psql: FATAL 1: cannot open /var/lib/pgsql/data/global/1262: Permission
> denied
> Any clues as to why this is happening and how to fix it?
Sounds like you failed to make the Postgres data files be owned by the
same user the postmaster is running as.
If you determine that the file ownership needs to be changed, "chown -R"
should help.
regards, tom lane