pg_dump -s dbname > dbname.dump createdb dbname_fake psql dbname_fake \i dbname.dump