[postgresql] errors are correctly detected