That's the required sequence of actions:
createdb yourdb
psql yourdb < ..../postgresql.sql
psql yourdb < your_dump_file.sql
Otherwise some things in your dumpfile will fail to create I guess.
I don't know if that is mentioned in the docs - it should be for sure. Feel free to add it if it's missing 😉