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
309c6474
Commit
309c6474
authored
Apr 29, 2012
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rename track_iotiming GUC to track_io_timing.
This spelling seems significantly more readable to me.
parent
5f2b0893
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
17 deletions
+18
-17
doc/src/sgml/config.sgml
doc/src/sgml/config.sgml
+5
-4
doc/src/sgml/monitoring.sgml
doc/src/sgml/monitoring.sgml
+1
-1
doc/src/sgml/pgstatstatements.sgml
doc/src/sgml/pgstatstatements.sgml
+2
-2
src/backend/storage/buffer/bufmgr.c
src/backend/storage/buffer/bufmgr.c
+5
-5
src/backend/utils/misc/guc.c
src/backend/utils/misc/guc.c
+3
-3
src/backend/utils/misc/postgresql.conf.sample
src/backend/utils/misc/postgresql.conf.sample
+1
-1
src/include/storage/bufmgr.h
src/include/storage/bufmgr.h
+1
-1
No files found.
doc/src/sgml/config.sgml
View file @
309c6474
...
...
@@ -4288,10 +4288,10 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
</listitem>
</varlistentry>
<varlistentry id="guc-track-io
timing" xreflabel="track_io
timing">
<term><varname>track_iotiming</varname> (<type>boolean</type>)</term>
<varlistentry id="guc-track-io
-timing" xreflabel="track_io_
timing">
<term><varname>track_io
_
timing</varname> (<type>boolean</type>)</term>
<indexterm>
<primary><varname>track_iotiming</> configuration parameter</primary>
<primary><varname>track_io
_
timing</> configuration parameter</primary>
</indexterm>
<listitem>
<para>
...
...
@@ -4299,7 +4299,8 @@ COPY postgres_log FROM '/full/path/to/logfile.csv' WITH csv;
default, because it will repeatedly query the operating system for
the current time, which may cause significant overhead on some
platforms. You can use the <xref linkend="pgtesttiming"> tool to
measure the overhead of timing on your system. Timing information is
measure the overhead of timing on your system.
I/O timing information is
displayed in <xref linkend="pg-stat-database-view">, in the output of
<xref linkend="sql-explain"> when the <literal>BUFFERS</> option is
used, and by <xref linkend="pgstatstatements">. Only superusers can
...
...
doc/src/sgml/monitoring.sgml
View file @
309c6474
...
...
@@ -155,7 +155,7 @@ postgres: <replaceable>user</> <replaceable>database</> <replaceable>host</> <re
</para>
<para>
The parameter <xref linkend="guc-track-iotiming"> enables monitoring
The parameter <xref linkend="guc-track-io
-
timing"> enables monitoring
of block read and write times.
</para>
...
...
doc/src/sgml/pgstatstatements.sgml
View file @
309c6474
...
...
@@ -161,7 +161,7 @@
<entry></entry>
<entry>
Total time the statement spent reading blocks, in milliseconds
(if <xref linkend="guc-track-iotiming"> is enabled, otherwise zero)
(if <xref linkend="guc-track-io
-
timing"> is enabled, otherwise zero)
</entry>
</row>
...
...
@@ -171,7 +171,7 @@
<entry></entry>
<entry>
Total time the statement spent writing blocks, in milliseconds
(if <xref linkend="guc-track-iotiming"> is enabled, otherwise zero)
(if <xref linkend="guc-track-io
-
timing"> is enabled, otherwise zero)
</entry>
</row>
...
...
src/backend/storage/buffer/bufmgr.c
View file @
309c6474
...
...
@@ -67,7 +67,7 @@
bool
zero_damaged_pages
=
false
;
int
bgwriter_lru_maxpages
=
100
;
double
bgwriter_lru_multiplier
=
2
.
0
;
bool
track_iotiming
=
false
;
bool
track_io
_
timing
=
false
;
/*
* How many buffers PrefetchBuffer callers should try to stay ahead of their
...
...
@@ -441,12 +441,12 @@ ReadBuffer_common(SMgrRelation smgr, char relpersistence, ForkNumber forkNum,
instr_time
io_start
,
io_time
;
if
(
track_iotiming
)
if
(
track_io
_
timing
)
INSTR_TIME_SET_CURRENT
(
io_start
);
smgrread
(
smgr
,
forkNum
,
blockNum
,
(
char
*
)
bufBlock
);
if
(
track_iotiming
)
if
(
track_io
_
timing
)
{
INSTR_TIME_SET_CURRENT
(
io_time
);
INSTR_TIME_SUBTRACT
(
io_time
,
io_start
);
...
...
@@ -1938,7 +1938,7 @@ FlushBuffer(volatile BufferDesc *buf, SMgrRelation reln)
buf
->
flags
&=
~
BM_JUST_DIRTIED
;
UnlockBufHdr
(
buf
);
if
(
track_iotiming
)
if
(
track_io
_
timing
)
INSTR_TIME_SET_CURRENT
(
io_start
);
smgrwrite
(
reln
,
...
...
@@ -1947,7 +1947,7 @@ FlushBuffer(volatile BufferDesc *buf, SMgrRelation reln)
(
char
*
)
BufHdrGetBlock
(
buf
),
false
);
if
(
track_iotiming
)
if
(
track_io
_
timing
)
{
INSTR_TIME_SET_CURRENT
(
io_time
);
INSTR_TIME_SUBTRACT
(
io_time
,
io_start
);
...
...
src/backend/utils/misc/guc.c
View file @
309c6474
...
...
@@ -1019,11 +1019,11 @@ static struct config_bool ConfigureNamesBool[] =
NULL
,
NULL
,
NULL
},
{
{
"track_iotiming"
,
PGC_SUSET
,
STATS_COLLECTOR
,
gettext_noop
(
"Collects timing
information for database I
O activity."
),
{
"track_io
_
timing"
,
PGC_SUSET
,
STATS_COLLECTOR
,
gettext_noop
(
"Collects timing
statistics for database I/
O activity."
),
NULL
},
&
track_iotiming
,
&
track_io
_
timing
,
false
,
NULL
,
NULL
,
NULL
},
...
...
src/backend/utils/misc/postgresql.conf.sample
View file @
309c6474
...
...
@@ -425,7 +425,7 @@
#track_activities = on
#track_counts = on
#track_iotiming = off
#track_io
_
timing = off
#track_functions = none # none, pl, all
#track_activity_query_size = 1024 # (change requires restart)
#update_process_title = on
...
...
src/include/storage/bufmgr.h
View file @
309c6474
...
...
@@ -48,7 +48,7 @@ extern PGDLLIMPORT int NBuffers;
extern
bool
zero_damaged_pages
;
extern
int
bgwriter_lru_maxpages
;
extern
double
bgwriter_lru_multiplier
;
extern
bool
track_iotiming
;
extern
bool
track_io
_
timing
;
extern
int
target_prefetch_pages
;
/* in buf_init.c */
...
...
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