> Appart from the above that LGTM.
thanks! I took care of your comments. I was not sureabout the need to cast "double" but as you mention thisis consistent with other parts of pgstatfuncs.c
v4 attached.
Regards,
Sami