Ok, this is how my pgadmin page looks. There is a postgres database, but I don't have to connect to it per se, I just connected to the server. I am not sure whether it makes a difference to which database I am connected when I use the query tool.
Now, I see the commands you say I need to perform:
Code: Select all
CREATE TABLESPACE spare_disk LOCATION 'D:\\pg_data';
and hit enter. Please note there are two backslashes. Then type:
Code: Select all
CREATE DATABASE pt3_newdb TABLESPACE spare_disk;
and hit enter. Then type:
Code: Select all
\connect pt3_newdb;
hit enter and the console will change to show that we are now connected to pt3_newdb. Once the console changes, type:
Code: Select all
\cd D:
hit enter and then type:
Code: Select all
\i schema.postgres.sql
I am guessing I will type those commands on the query tool and I will select execute. Question. Do I need to type select all before each command, or just type the command bellow it? Also, do I need to type the semicolon after those commands?
Thanks