psql -U postgres
CREATE DATABASE your_database_name;
CREATE USER your_username WITH PASSWORD 'your_password';
GRANT ALL PRIVILEGES ON DATABASE your_database_name TO your_username;
net start postgresql-x64-
net stop postgresql-x64-
pg_dump -U your_username -d your_database_name -f backup_file.sql
pg_restore -U your_username -d your_database_name -v backup_file.sql
VACUUM;
ANALYZE;