pg fixes for the log