Re: Transform for pl/perl

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема Re: Transform for pl/perl
Дата
Msg-id CAEepm=3fSqP_ChKQmpYwgxqy9nyx5KtHnE1swi9OqCq7hY6EsQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Transform for pl/perl  (Anthony Bykov <a.bykov@postgrespro.ru>)
Список pgsql-hackers
On Fri, Jan 12, 2018 at 9:47 PM, Anthony Bykov <a.bykov@postgrespro.ru> wrote:
> On Fri, 12 Jan 2018 15:19:26 +1300
> Thomas Munro <thomas.munro@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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Failed test 'psql query died successfully after SIGQUIT'
Следующее
От: Ivan Novick
Дата:
Сообщение: Re: Built-in connection pooling