pg error boolean