Setup

Setting up a local (postgres) database:

psql# create database airflow
CREATE ROLE airflow;
GRANT ALL PRIVILEGES on database airflow to airflow
ALTER ROLE airflow SUPERUSER;
ALTER ROLE airflow CREATEDB;
GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA public TO airflow;