Ram <ram(at)anantinfotech(dot)com> writes:
> # createdb test;
> psql: FATAL 1: Database "template1" does not exist in the system
> catalog.
What PG version is this? Can you get into any of your other databases?
If so, what do you get from "SELECT * FROM pg_database"?
regards, tom lane