postgresql plugin: If a query fails, try to reconnect immediately.