postgres and debugging support