Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
fd416db4
Commit
fd416db4
authored
Jun 04, 2009
by
Andrew Dunstan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initialise perl library as documented in perl API. Backpatch to release 7.4.
parent
5d682cab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
src/pl/plperl/plperl.c
src/pl/plperl/plperl.c
+10
-2
No files found.
src/pl/plperl/plperl.c
View file @
fd416db4
/**********************************************************************
* plperl.c - perl as a procedural language for PostgreSQL
*
* $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.14
6 2009/02/20 10:39:19 petere
Exp $
* $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.14
7 2009/06/04 15:59:55 adunstan
Exp $
*
**********************************************************************/
...
...
@@ -399,6 +399,8 @@ plperl_init_interp(void)
""
,
"-e"
,
PERLBOOT
};
int
nargs
=
3
;
#ifdef WIN32
/*
...
...
@@ -442,13 +444,19 @@ plperl_init_interp(void)
#endif
#ifdef PERL_SYS_INIT3
/* only call this the first time through, as per perlembed man page */
if
(
interp_state
==
INTERP_NONE
)
PERL_SYS_INIT3
(
&
nargs
,
(
char
***
)
&
embedding
,
NULL
);
#endif
plperl_held_interp
=
perl_alloc
();
if
(
!
plperl_held_interp
)
elog
(
ERROR
,
"could not allocate Perl interpreter"
);
perl_construct
(
plperl_held_interp
);
perl_parse
(
plperl_held_interp
,
plperl_init_shared_libs
,
3
,
embedding
,
NULL
);
nargs
,
embedding
,
NULL
);
perl_run
(
plperl_held_interp
);
if
(
interp_state
==
INTERP_NONE
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment