Kashif Riaz <kriaz(at)cs(dot)uno(dot)edu> writes:
> psql: FATAL: database "db001", OID 1198223, has disappeared from pg_database
Hmm, did you drop and recreate database db001? There are some scenarios
where incoming backends can get confused in such scenarios. Try
"VACUUM pg_database; CHECKPOINT".
regards, tom lane