On Fri, Jan 12, 2018 at 9:47 PM, Anthony Bykov <a.by...@postgrespro.ru> wrote: > On Fri, 12 Jan 2018 15:19:26 +1300 > Thomas Munro <thomas.mu...@enterprisedb.com> wrote: > Hello, thank you for your message. > The problem was that different perl compilers uses different infinity > representations. Some of them use "Inf" others - use "inf". So, in > attachments there is a new version of the patch.
BTW PostgreSQL is written in C89 (though it uses some C99 library features if present, just not language features), so you can't do this: jsonb_plperl.c: In function ‘SV_ToJsonbValue’: jsonb_plperl.c:238:6: error: ‘for’ loop initial declarations are only allowed in C99 mode for (int i=0;str[i];i++) ^ -- Thomas Munro http://www.enterprisedb.com