Skip to content

Commit c73fe72

Browse files
committed
Add comment on why we're passing a useless 'false' to the plperl function compiler.
It's for compatibility with modules like PostgreSQL::PLPerl::NYTProf.
1 parent 5a6ba62 commit c73fe72

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/pl/plperl/plperl.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1422,7 +1422,12 @@ plperl_create_sub(plperl_proc_desc *prodesc, char *s, Oid fn_oid)
14221422
EXTEND(SP, 4);
14231423
PUSHs(sv_2mortal(newSVstring(subname)));
14241424
PUSHs(sv_2mortal(newRV_noinc((SV *) pragma_hv)));
1425-
PUSHs(&PL_sv_no); /* XXX is $prolog in mkfunc needed any more? */
1425+
/*
1426+
* Use 'false' for $prolog in mkfunc, which is kept for compatibility
1427+
* in case a module such as PostgreSQL::PLPerl::NYTprof replaces
1428+
* the function compiler.
1429+
*/
1430+
PUSHs(&PL_sv_no);
14261431
PUSHs(sv_2mortal(newSVstring(s)));
14271432
PUTBACK;
14281433

0 commit comments

Comments
 (0)