diff options
author | Robert Haas <rhaas@postgresql.org> | 2020-06-17 11:39:17 -0400 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2020-06-17 11:39:17 -0400 |
commit | 2fd2effc50824a8775a088435a13f47b7a6f3b94 (patch) | |
tree | 6a27fc6920e57757dc10badaa410dc756cb7dee8 /doc/src | |
parent | 453e0e3f0ef3202386b553719f628cef93ff95a7 (diff) | |
download | postgresql-2fd2effc50824a8775a088435a13f47b7a6f3b94.tar.gz postgresql-2fd2effc50824a8775a088435a13f47b7a6f3b94.zip |
Improve server code to read files as part of a base backup.
Don't use fread(), since that doesn't necessarily set errno. We could
use read() instead, but it's even better to use pg_pread(), which
allows us to avoid some extra calls to seek to the desired location in
the file.
Also, advertise a wait event while reading from a file, as we do for
most other places where we're reading data from files.
Patch by me, reviewed by Hamid Akhtar.
Discussion: http://postgr.es/m/CA+TgmobBw-3573vMosGj06r72ajHsYeKtksT_oTxH8XvTL7DxA@mail.gmail.com
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/monitoring.sgml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/src/sgml/monitoring.sgml b/doc/src/sgml/monitoring.sgml index 89662cc0a36..dfa9d0d6410 100644 --- a/doc/src/sgml/monitoring.sgml +++ b/doc/src/sgml/monitoring.sgml @@ -1194,6 +1194,10 @@ postgres 27093 0.0 0.0 30096 2752 ? Ss 11:34 0:00 postgres: ser <tbody> <row> + <entry><literal>BaseBackupRead</literal></entry> + <entry>Waiting for base backup to read from a file.</entry> + </row> + <row> <entry><literal>BufFileRead</literal></entry> <entry>Waiting for a read from a buffered file.</entry> </row> |