date

dropdb  $1

createdb --encoding=UTF8  $1
psql -U postgres -d $1 -a    -f extend.sql

date

osm2pgsql  -d $1 -U postgres -O flex -S mycfg.lua pbf/$1-latest.osm.pbf

psql -v ON_ERROR_STOP=1 -U postgres -d $1 -a    -f all.sql

rm pbf/$1-latest.osm.pbf

=