Fixing another pg-specific query issue