Re: Wait event that should be reported while waiting for WAL archiving to finish
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Fujii Masao <masao.fujii@oss.nttdata.com>
Cc: Robert Haas <robertmhaas@gmail.com>, "pgsql-hackers@postgresql.org" <pgsql-hackers@postgresql.org>
Date: 2020-02-18T03:39:49Z
Lists: pgsql-hackers
On Mon, Feb 17, 2020 at 10:21:23PM +0900, Fujii Masao wrote: > On 2020/02/17 18:48, Michael Paquier wrote: >> Actually, I have some questions: >> 1) Should a new wait event be added in recoveryPausesHere()? That >> would be IMO useful. > > Yes, it's useful, I think. But it's better to implement that > as a separate patch. No problem for me. >> 2) Perhaps those two points should be replaced with WaitLatch(), where >> we would use the new wait events introduced? > > For what? Maybe it should, but I'm not sure it's worth the trouble. I don't have more to offer than signal handling consistency for both without relying on pg_usleep()'s behavior depending on the platform, and power consumption. For the recovery pause, the second argument may not be worth carrying, but we never had this argument for the archiving wait, did we? For both, on top of it you don't need to worry about concurrent issues with the wait events attached around. -- Michael
Commits
-
Add wait events for WAL archive and recovery pause.
- b8e20d6dabda 13.0 landed
-
Add description about GSSOpenServer wait event into document.
- 0b5474181569 12.3 landed
- f4ae7221413d 13.0 landed
-
Add description about LogicalRewriteTruncate wait event into document.
- 1beab076cefe 10.13 landed
- 12bea22a78c1 11.8 landed
- 6c221aa56e18 12.3 landed
- e593148d43ad 13.0 landed
-
GSSAPI encryption support
- b0b39f72b990 12.0 cited
-
Create and use wait events for read, write, and fsync operations.
- 249cf070e367 10.0 cited