Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au> writes:
>> In a quick glance this code seems close to completely brain dead :-(
> So what are we going to do about it?
Fix it, of course.
(Note I only fixed the parenthesization, I take no responsibility for
the still-pretty-brain-dead layout.)
regards, tom lane