>> (2a) remove double stuff, just keep integer functions.
>>      I would rather keep min/max, though.
>
> (2a) sounds like a fine plan to get something committable. We could keep 
> min/max/abs, and remove sqrt/pi. What's actually the use case for debug? 
> I cannot wrap my mind on one?
It was definitely useful to debug the double/int type stuff within 
expressions when writing a non trivial pgbench script. It is probably less 
interesting if there are only integers.
>> (2b) keep the patch with both int & double as is.
>
> Functions returning double are not that useful... pgbench can live 
> without them.
Sure.
-- 
Fabien.