The following bug has been logged on the website:
Bug reference: 16901
Logged by: Sam Woodward
Email address: samuelwoodward(at)gmail(dot)com
PostgreSQL version: 13.2
Operating system: Windows 10
Description:
for example log(1, 10) gives division by zero error whereas log10(1) gives 0