I know the difference between background writer, checkpointer, walwriter, and parallel_worker:
But I am confused with client backend. I use opensnoop and trace to find that client backend usually writes (pwrite(2)) something to both data-file and wal-file.
PID COMM FD ERR PATH
18365 (client backend) postgres 51 0 base/16384/16403
18365 (client backend) postgres 52 0 pg_wal/0000000100000001000000E1
Question
- What is
client backendresponsible for? - At most one
client backendper connection?