PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> for example log(1, 10) gives division by zero error whereas log10(1) gives 0
I think you have the arguments backwards: the equivalent
computation is log(10, 1) not log(1, 10).
regards, tom lane