|
810 | 810 | <para>
|
811 | 811 | There are two internal functions to write WAL data to disk:
|
812 | 812 | <function>XLogWrite</function> and <function>issue_xlog_fsync</function>.
|
813 |
| - When <xref linkend="guc-track-wal-io-timing"/> is enabled, the total |
| 813 | + When <xref linkend="guc-track-io-timing"/> is enabled, the total |
814 | 814 | amounts of time <function>XLogWrite</function> writes and
|
815 | 815 | <function>issue_xlog_fsync</function> syncs WAL data to disk are counted as
|
816 |
| - <literal>wal_write_time</literal> and <literal>wal_sync_time</literal> in |
817 |
| - <xref linkend="pg-stat-wal-view"/>, respectively. |
| 816 | + <varname>write_time</varname> and <varname>sync_time</varname> in |
| 817 | + <xref linkend="pg-stat-io-view"/> for the <varname>object</varname> |
| 818 | + <literal>wal</literal>, respectively. |
818 | 819 | <function>XLogWrite</function> is normally called by
|
819 | 820 | <function>XLogInsertRecord</function> (when there is no space for the new
|
820 | 821 | record in WAL buffers), <function>XLogFlush</function> and the WAL writer,
|
|
829 | 830 | <literal>fsync</literal>, or <literal>fsync_writethrough</literal>,
|
830 | 831 | the write operation moves WAL buffers to kernel cache and
|
831 | 832 | <function>issue_xlog_fsync</function> syncs them to disk. Regardless
|
832 |
| - of the setting of <varname>track_wal_io_timing</varname>, the number |
| 833 | + of the setting of <varname>track_io_timing</varname>, the number |
833 | 834 | of times <function>XLogWrite</function> writes and
|
834 | 835 | <function>issue_xlog_fsync</function> syncs WAL data to disk are also
|
835 |
| - counted as <literal>wal_write</literal> and <literal>wal_sync</literal> |
836 |
| - in <structname>pg_stat_wal</structname>, respectively. |
| 836 | + counted as <varname>writes</varname> and <varname>fsyncs</varname> |
| 837 | + in <structname>pg_stat_io</structname> for the <varname>object</varname> |
| 838 | + <literal>wal</literal>, respectively. |
837 | 839 | </para>
|
838 | 840 |
|
839 | 841 | <para>
|
|
0 commit comments