Vik Fearing <vik(at)2ndquadrant(dot)fr> writes:
> I looked around for other places where this code should be used and
> didn't find any. I am marking this patch Ready for Committer.
I pushed this with some adjustments, mainly to make sure that the
erroneous-units errors exactly match those that would be thrown in
the main code line.
regards, tom lane