1. createlang plpgsql mydb
2. createlang pltcl mydb
3. psql -f postgres.sql mydb (it will give you some errors, ignore it, are normal becuase you did the previous commands)