PSQL on Windows
in SQL Shell (psql):
After login into db as postgres user:
.sql file:\i c:/data/data01.sql
Make sure to close all apps that use this database.
Right click Servers/PostgreSQL/Databases/db-name and choose Delete/Drop
Right click Servers/PostgreSQL/Databases and choose Create...