Re[2]: bool_plperl transform

2020-03-01 Thread Ivan Panchenko
  >Понедельник, 2 марта 2020, 1:09 +03:00 от ilm...@ilmari.org: >  >Wao < w...@mail.ru > writes: >  >> +Datum >> +bool_to_plperl(PG_FUNCTION_ARGS) >> +{ >> + dTHX; >> + bool in = PG_GETARG_BOOL(0); >> + SV *sv = newSVnv(SvNV(in ? &PL_sv_yes : &PL_sv_no)); >> + return PointerGetDatum(sv); >> +}

Re: Re[2]: bool_plperl transform

2020-03-01 Thread Tom Lane
=?UTF-8?B?V2Fv?= writes: > Please find the full patch attached. The cfbot shows this failing to build on Windows: https://ci.appveyor.com/project/postgresql-cfbot/postgresql/build/1.0.81889 I believe that's a build without plperl, so what it's probably telling you is that Mkvcbuild.pm needs to

Re[2]: bool_plperl transform

2020-03-01 Thread Ivan Panchenko
  >Воскресенье, 1 февраля 2020, 1:15 +03:00 от Tom Lane : >  >=?UTF-8?B?SXZhbiBQYW5jaGVua28=?= < w...@mail.ru > writes: >> While using PL/Perl I have found that it obtains boolean arguments from >> Postgres as ‘t’ and ‘f’, which is extremely inconvenient because ‘f’ is not >> false from the p

Re[2]: bool_plperl transform

2020-03-01 Thread Wao
Sorry,   Please find the full patch attached.   Ivan   >Воскресенье, 1 марта 2020, 7:57 +03:00 от Andrew Dunstan >: >  > >On 2/29/20 4:55 PM, Ivan Panchenko wrote: >> Hi, >> While using PL/Perl I have found that it obtains boolean arguments >> from Postgres as ‘t’ and ‘f’, which is extremely inc