Andres Freund <andres(at)2ndquadrant(dot)com> writes:> Simple fix attached.
Are you sure this isn't just moving the failure conditions around?
regards, tom lane