postgresql/src/backend/postmaster
Robert Haas 2fd2effc50 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
2020-06-17 11:39:17 -04:00
..
Makefile Partially deduplicate interrupt handling for background processes. 2019-12-17 13:14:28 -05:00
autovacuum.c pgindent run prior to branching v13. 2020-06-07 16:57:08 -04:00
bgworker.c Fix collection of typos and grammar mistakes in the tree 2020-04-10 11:18:39 +09:00
bgwriter.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
checkpointer.c Spelling adjustments 2020-06-07 15:06:51 +02:00
fork_process.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
interrupt.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00
pgarch.c Unify several ways to tracking backend type 2020-03-13 14:01:10 +01:00
pgstat.c Improve server code to read files as part of a base backup. 2020-06-17 11:39:17 -04:00
postmaster.c Spelling adjustments 2020-06-07 15:06:51 +02:00
startup.c Allow walreceiver configuration to change on reload 2020-03-27 19:51:37 -03:00
syslogger.c Remove am_syslogger global variable 2020-03-13 14:01:15 +01:00
walwriter.c Update copyrights for 2020 2020-01-01 12:21:45 -05:00