I wanna restore a dumped psql file but i consistently run into this error
The command I run in terminal is:
psql -U postgres -f dumpall.sql
The error I run into is as follows:
psql:dumpall.sql:96: ERROR: database "template1" does not exist
psql:dumpall.sql:100: ERROR: template database "template1" does not exist
psql:dumpall.sql:101: ERROR: option "locale" not recognized
LINE 1: ...late1 WITH TEMPLATE = template0 ENCODING = 'UTF8' LOCALE = '...
^
psql:dumpall.sql:104: ERROR: database "template1" does not exist
psql:dumpall.sql:106: error: \connect: FATAL: database "template1" does not exist