Joseph Koshakow <koshy44(at)gmail(dot)com> writes:
> I took a stab at this issue and the attached patch (which would be
> applied on top of your v10 patch) seems to fix the issue. Feel
> free to ignore it if you're already working on a fix.
You really only need to flip val/fval in one place. More to the
point, there's also the hh:mm:ss paths to deal with; see my v11.
regards, tom lane