#!/bin/bash

if [ $# -eq 0 ]; then
  psql -h db0.chgate.net -U analyzer messages
else
  psql -h db0.chgate.net -U analyzer messages -f $1
fi

