From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | Anthony Bykov <a(dot)bykov(at)postgrespro(dot)ru> |
Cc: | Arthur Zakirov <a(dot)zakirov(at)postgrespro(dot)ru>, Thomas Munro <thomas(dot)munro(at)enterprisedb(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Transform for pl/perl |
Date: | 2018-03-05 13:03:37 |
Message-ID: | CAFj8pRCYBPFGZG5LHdfY1Ej+a_9sb3ugyDkUaJGD37UjpRpA8Q@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi
I am looking on this patch. I found few issues:
1. compile warning
I../../src/include -D_GNU_SOURCE -I/usr/include/libxml2
-I/usr/lib64/perl5/CORE -c -o jsonb_plperl.o jsonb_plperl.c
jsonb_plperl.c: In function ‘SV_FromJsonbValue’:
jsonb_plperl.c:69:9: warning: ‘result’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
return result;
^~~~~~
jsonb_plperl.c: In function ‘SV_FromJsonb’:
jsonb_plperl.c:142:9: warning: ‘result’ may be used uninitialized in this
function [-Wmaybe-uninitialized]
return result;
^~~~~~
2. bad comment
/*
* SV_ToJsonbValue
*
* Transform Jsonb into SV --- propably reverse direction
*/
/*
* HV_ToJsonbValue
*
* Transform Jsonb into SV
*/
/*
* plperl_to_jsonb(SV *in)
*
* Transform Jsonb into SV
*/
3. Do we need two identical tests fro PLPerl and PLPerlu? Why?
Regards
Pavel
From | Date | Subject | |
---|---|---|---|
Next Message | Curt Tilmes | 2018-03-05 13:16:07 | Re: [PATCH] Find additional connection service files in pg_service.conf.d directory |
Previous Message | Etsuro Fujita | 2018-03-05 13:00:58 | Re: inserts into partitioned table may cause crash |