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
292794f8
Commit
292794f8
authored
Jun 17, 2016
by
Robert Haas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove PID from 'parallel worker' context message.
Discussion: <bfd204ab-ab1a-792a-b345-0274a09a4b5f@2ndquadrant.com>
parent
103512ce
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
src/backend/access/transam/parallel.c
src/backend/access/transam/parallel.c
+2
-2
src/test/regress/expected/select_parallel.out
src/test/regress/expected/select_parallel.out
+2
-2
src/test/regress/sql/select_parallel.sql
src/test/regress/sql/select_parallel.sql
+2
-2
No files found.
src/backend/access/transam/parallel.c
View file @
292794f8
...
@@ -788,7 +788,7 @@ HandleParallelMessage(ParallelContext *pcxt, int i, StringInfo msg)
...
@@ -788,7 +788,7 @@ HandleParallelMessage(ParallelContext *pcxt, int i, StringInfo msg)
*/
*/
save_error_context_stack
=
error_context_stack
;
save_error_context_stack
=
error_context_stack
;
errctx
.
callback
=
ParallelErrorContext
;
errctx
.
callback
=
ParallelErrorContext
;
errctx
.
arg
=
&
pcxt
->
worker
[
i
].
pid
;
errctx
.
arg
=
NULL
;
errctx
.
previous
=
pcxt
->
error_context_stack
;
errctx
.
previous
=
pcxt
->
error_context_stack
;
error_context_stack
=
&
errctx
;
error_context_stack
=
&
errctx
;
...
@@ -1095,7 +1095,7 @@ static void
...
@@ -1095,7 +1095,7 @@ static void
ParallelErrorContext
(
void
*
arg
)
ParallelErrorContext
(
void
*
arg
)
{
{
if
(
force_parallel_mode
!=
FORCE_PARALLEL_REGRESS
)
if
(
force_parallel_mode
!=
FORCE_PARALLEL_REGRESS
)
errcontext
(
"parallel worker
, PID %d"
,
*
(
int32
*
)
arg
);
errcontext
(
"parallel worker
"
);
}
}
/*
/*
...
...
src/test/regress/expected/select_parallel.out
View file @
292794f8
...
@@ -64,8 +64,8 @@ explain (costs off)
...
@@ -64,8 +64,8 @@ explain (costs off)
(5 rows)
(5 rows)
do $$begin
do $$begin
-- Provoke error
in worker. The original message CONTEXT contains a worker
-- Provoke error
, possibly in worker. If this error happens to occur in
--
PID that must be hidden in the test output
.
--
the worker, there will be a CONTEXT line which must be hidden
.
perform stringu1::int2 from tenk1 where unique1 = 1;
perform stringu1::int2 from tenk1 where unique1 = 1;
exception
exception
when others then
when others then
...
...
src/test/regress/sql/select_parallel.sql
View file @
292794f8
...
@@ -30,8 +30,8 @@ explain (costs off)
...
@@ -30,8 +30,8 @@ explain (costs off)
select
stringu1
::
int2
from
tenk1
where
unique1
=
1
;
select
stringu1
::
int2
from
tenk1
where
unique1
=
1
;
do
$$
begin
do
$$
begin
-- Provoke error
in worker. The original message CONTEXT contains a worker
-- Provoke error
, possibly in worker. If this error happens to occur in
--
PID that must be hidden in the test output
.
--
the worker, there will be a CONTEXT line which must be hidden
.
perform
stringu1
::
int2
from
tenk1
where
unique1
=
1
;
perform
stringu1
::
int2
from
tenk1
where
unique1
=
1
;
exception
exception
when
others
then
when
others
then
...
...
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