Rachel Willmer <rachel(at)willmer(dot)com> writes:
> DROP DATABASE testdb;
> CREATE DATABASE testdb;
> Database appears again. But so does the schema 'edinburgh', all its
> tables, views, data, etc.
Sounds like you created all that stuff in template1, and so it's being
copied into the new database. Read about template databases:
http://www.postgresql.org/docs/7.4/static/manage-ag-templatedbs.html
If you decide you want to rebuild template1 without re-initdb'ing,
there's a recipe somewhere on the techdocs site --- it's not quite
a trivial thing to do.
regards, tom lane