Fixes #2235 PostgreSQL error on quick reply