pg error boolean 2