pgsql: Fixes for errors handling with synchronous sql queries.
pgsql: Fixes for errors handling with synchronous sql queries.

--HG--
branch : HEAD

dscho/dovecot,dscho/dovecot,dscho/dovecot,dscho/dovecot,dscho/dovecot