"Natalya Pyalling" <pyal@rtsoft.msk.ru> writes:
> $psql template1
> psql: FATAL 1: Database 'template1', OID 17216, has disappeared from
> pg_database
Connect to any database you can get into (hopefully there's at least
one) and issue "VACUUM pg_database". Should fix things up.
regards, tom lane