mirror of
https://github.com/postgres/postgres.git
synced 2025-11-21 00:42:43 +03:00
Add more chattiness in server shutdown.
Early returns from the buildfarm show that there's a bit of a gap in the
logging I added in 3971f64843: the portion of CreateCheckPoint()
after CheckPointGuts() can take a fair amount of time. Add a few more
log messages in that section of code. This too shall be reverted later.
This commit is contained in:
@@ -1314,6 +1314,11 @@ mdpostckpt(void)
|
||||
if (entry->cycle_ctr == mdckpt_cycle_ctr)
|
||||
break;
|
||||
|
||||
if ((list_length(pendingUnlinks) % 1024) == 0)
|
||||
elog(IsPostmasterEnvironment ? LOG : NOTICE,
|
||||
"in mdpostckpt, %d unlinks remain to do at %s",
|
||||
list_length(pendingUnlinks), current_time_as_str());
|
||||
|
||||
/* Unlink the file */
|
||||
path = relpathperm(entry->rnode, MAIN_FORKNUM);
|
||||
if (unlink(path) < 0)
|
||||
|
||||
Reference in New Issue
Block a user