Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc73fe72

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 parent5a6ba62 commitc73fe72

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)

[8]ページ先頭

©2009-2025 Movatter.jp