debug for postgres