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
c92e2702
Commit
c92e2702
authored
Mar 17, 2010
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Message style tuning
parent
2fb605ec
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
src/pl/plperl/expected/plperl_init.out
src/pl/plperl/expected/plperl_init.out
+1
-1
src/pl/plperl/plperl.c
src/pl/plperl/plperl.c
+10
-10
No files found.
src/pl/plperl/expected/plperl_init.out
View file @
c92e2702
...
...
@@ -10,5 +10,5 @@ SHOW plperl.on_plperl_init;
DO $$ warn 42 $$ language plperl;
ERROR: 'eval "string"' trapped by operation mask at line 2.
CONTEXT:
While executing plperl.on_plperl_init.
CONTEXT:
while executing plperl.on_plperl_init
PL/Perl anonymous code block
src/pl/plperl/plperl.c
View file @
c92e2702
/**********************************************************************
* plperl.c - perl as a procedural language for PostgreSQL
*
* $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.17
1 2010/03/09 22:34:38 tgl
Exp $
* $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.17
2 2010/03/17 21:31:17 petere
Exp $
*
**********************************************************************/
...
...
@@ -246,7 +246,7 @@ _PG_init(void)
NULL
,
NULL
);
DefineCustomStringVariable
(
"plperl.on_init"
,
gettext_noop
(
"Perl initialization code to execute when a
p
erl interpreter is initialized."
),
gettext_noop
(
"Perl initialization code to execute when a
P
erl interpreter is initialized."
),
NULL
,
&
plperl_on_init
,
NULL
,
...
...
@@ -422,7 +422,7 @@ select_perl_context(bool trusted)
if
(
SvTRUE
(
ERRSV
))
ereport
(
ERROR
,
(
errmsg
(
"%s"
,
strip_trailing_ws
(
SvPV_nolen
(
ERRSV
))),
err
detail
(
"While executing PostgreSQL::InServer::SPI::bootstrap.
"
)));
err
context
(
"while executing PostgreSQL::InServer::SPI::bootstrap
"
)));
}
/*
...
...
@@ -560,12 +560,12 @@ plperl_init_interp(void)
nargs
,
embedding
,
NULL
)
!=
0
)
ereport
(
ERROR
,
(
errmsg
(
"%s"
,
strip_trailing_ws
(
SvPV_nolen
(
ERRSV
))),
errcontext
(
"
While parsing perl initialization.
"
)));
errcontext
(
"
while parsing Perl initialization
"
)));
if
(
perl_run
(
plperl
)
!=
0
)
ereport
(
ERROR
,
(
errmsg
(
"%s"
,
strip_trailing_ws
(
SvPV_nolen
(
ERRSV
))),
errcontext
(
"
While running perl initialization.
"
)));
errcontext
(
"
while running Perl initialization
"
)));
#ifdef WIN32
...
...
@@ -703,7 +703,7 @@ plperl_trusted_init(void)
if
(
SvTRUE
(
ERRSV
))
ereport
(
ERROR
,
(
errmsg
(
"%s"
,
strip_trailing_ws
(
SvPV_nolen
(
ERRSV
))),
errcontext
(
"
While executing PLC_SAFE_BAD.
"
)));
errcontext
(
"
while executing PLC_SAFE_BAD
"
)));
}
else
{
...
...
@@ -711,7 +711,7 @@ plperl_trusted_init(void)
if
(
SvTRUE
(
ERRSV
))
ereport
(
ERROR
,
(
errmsg
(
"%s"
,
strip_trailing_ws
(
SvPV_nolen
(
ERRSV
))),
errcontext
(
"
While executing PLC_SAFE_OK.
"
)));
errcontext
(
"
while executing PLC_SAFE_OK
"
)));
if
(
GetDatabaseEncoding
()
==
PG_UTF8
)
{
...
...
@@ -724,7 +724,7 @@ plperl_trusted_init(void)
if
(
SvTRUE
(
ERRSV
))
ereport
(
ERROR
,
(
errmsg
(
"%s"
,
strip_trailing_ws
(
SvPV_nolen
(
ERRSV
))),
errcontext
(
"
While executing utf8fix.
"
)));
errcontext
(
"
while executing utf8fix
"
)));
}
/* switch to the safe require opcode */
...
...
@@ -744,7 +744,7 @@ plperl_trusted_init(void)
if
(
SvTRUE
(
ERRSV
))
ereport
(
ERROR
,
(
errmsg
(
"%s"
,
strip_trailing_ws
(
SvPV_nolen
(
ERRSV
))),
errcontext
(
"
While executing plperl.on_plperl_init.
"
)));
errcontext
(
"
while executing plperl.on_plperl_init
"
)));
}
}
...
...
@@ -760,7 +760,7 @@ plperl_untrusted_init(void)
if
(
SvTRUE
(
ERRSV
))
ereport
(
ERROR
,
(
errmsg
(
"%s"
,
strip_trailing_ws
(
SvPV_nolen
(
ERRSV
))),
errcontext
(
"
While executing plperl.on_plperlu_init.
"
)));
errcontext
(
"
while executing plperl.on_plperlu_init
"
)));
}
}
...
...
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