Why isn't pg_restore --create working?
Yes that behaviour is something that I should report to postgres as use of different flags doesnt seem to have an effect and it just doesnt work. To solve it use:


create DB


createdb -h HOST -U USER -W DB_NAME


restore and in case of Error Stop


egrep -v 'EXTENSION.*plpgsql' DUMPFILE.sql | psql -h HOST -U USER -W  -d DB_NAME -v ON_ERROR_STOP=1