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
9ee8b9fd
Commit
9ee8b9fd
authored
Oct 25, 2005
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change trace_sort to output to the log, rather than the user's terminal.
parent
352a7841
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
src/backend/utils/sort/tuplesort.c
src/backend/utils/sort/tuplesort.c
+11
-11
No files found.
src/backend/utils/sort/tuplesort.c
View file @
9ee8b9fd
...
...
@@ -78,7 +78,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/sort/tuplesort.c,v 1.5
3 2005/10/18 22:59:37 tgl
Exp $
* $PostgreSQL: pgsql/src/backend/utils/sort/tuplesort.c,v 1.5
4 2005/10/25 13:47:08 momjian
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -468,7 +468,7 @@ tuplesort_begin_heap(TupleDesc tupDesc,
#ifdef TRACE_SORT
if
(
trace_sort
)
elog
(
NOTICE
,
elog
(
LOG
,
"begin tuple sort: nkeys = %d, workMem = %d, randomAccess = %c"
,
nkeys
,
workMem
,
randomAccess
?
't'
:
'f'
);
#endif
...
...
@@ -518,7 +518,7 @@ tuplesort_begin_index(Relation indexRel,
#ifdef TRACE_SORT
if
(
trace_sort
)
elog
(
NOTICE
,
elog
(
LOG
,
"begin index sort: unique = %c, workMem = %d, randomAccess = %c"
,
enforceUnique
?
't'
:
'f'
,
workMem
,
randomAccess
?
't'
:
'f'
);
...
...
@@ -549,7 +549,7 @@ tuplesort_begin_datum(Oid datumType,
#ifdef TRACE_SORT
if
(
trace_sort
)
elog
(
NOTICE
,
elog
(
LOG
,
"begin datum sort: workMem = %d, randomAccess = %c"
,
workMem
,
randomAccess
?
't'
:
'f'
);
#endif
...
...
@@ -623,10 +623,10 @@ tuplesort_end(Tuplesortstate *state)
if
(
trace_sort
)
{
if
(
state
->
tapeset
)
elog
(
NOTICE
,
"external sort ended, %ld disk blocks used: %s"
,
elog
(
LOG
,
"external sort ended, %ld disk blocks used: %s"
,
spaceUsed
,
pg_rusage_show
(
&
state
->
ru_start
));
else
elog
(
NOTICE
,
"internal sort ended, %ld KB used: %s"
,
elog
(
LOG
,
"internal sort ended, %ld KB used: %s"
,
spaceUsed
,
pg_rusage_show
(
&
state
->
ru_start
));
}
#endif
...
...
@@ -771,7 +771,7 @@ tuplesort_performsort(Tuplesortstate *state)
{
#ifdef TRACE_SORT
if
(
trace_sort
)
elog
(
NOTICE
,
"performsort starting: %s"
,
elog
(
LOG
,
"performsort starting: %s"
,
pg_rusage_show
(
&
state
->
ru_start
));
#endif
...
...
@@ -817,7 +817,7 @@ tuplesort_performsort(Tuplesortstate *state)
#ifdef TRACE_SORT
if
(
trace_sort
)
elog
(
NOTICE
,
"performsort done%s: %s"
,
elog
(
LOG
,
"performsort done%s: %s"
,
(
state
->
status
==
TSS_FINALMERGE
)
?
" (except final merge)"
:
""
,
pg_rusage_show
(
&
state
->
ru_start
));
#endif
...
...
@@ -1054,7 +1054,7 @@ inittapes(Tuplesortstate *state)
#ifdef TRACE_SORT
if
(
trace_sort
)
elog
(
NOTICE
,
"switching to external sort: %s"
,
elog
(
LOG
,
"switching to external sort: %s"
,
pg_rusage_show
(
&
state
->
ru_start
));
#endif
...
...
@@ -1316,7 +1316,7 @@ mergeonerun(Tuplesortstate *state)
#ifdef TRACE_SORT
if
(
trace_sort
)
elog
(
NOTICE
,
"finished merge step: %s"
,
elog
(
LOG
,
"finished merge step: %s"
,
pg_rusage_show
(
&
state
->
ru_start
));
#endif
}
...
...
@@ -1533,7 +1533,7 @@ dumptuples(Tuplesortstate *state, bool alltuples)
#ifdef TRACE_SORT
if
(
trace_sort
)
elog
(
NOTICE
,
"finished writing%s run %d: %s"
,
elog
(
LOG
,
"finished writing%s run %d: %s"
,
(
state
->
memtupcount
==
0
)
?
" final"
:
""
,
state
->
currentRun
,
pg_rusage_show
(
&
state
->
ru_start
));
...
...
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