there are 2 important step
- create Username as postgres.
- "CREATE EXTENSION postgis;"
and the restore should work.
if you see an error like "ERROR: duplicate key value violates unique constraint "nyc_census_blocks_pkey""
you have to use "-c" option
" -c, --clean clean (drop) database objects before recreating"
add sometimes the "--verbose" option is also useful.
regards,
Imre