Dear Iwata-san, Thanks for updating the patch.
> I updated my patch using bgw_flags to set whether accept to terminate bgworker > or not. > And I also removed AcceptBackgroundWorkerCancel() function. > Please check my attached patch. ``` +/* + * Cancel background workers. + */ +void +CancelBackgroundWorkers(Oid databaseId, int cancel_flags) ``` Do we still need the cancel_flags? I cannot find other reasons to terminate workers. Also the things I don't like is that BGWORKER_CANCEL_ADMIN_COMMANDS must have the same value as BGWORKER_EXIT_AT_DATABASE_DROP. Only one flag exists but it has 0x0004. Can we remove the argument and flags from the patch? [1]: https://www.postgresql.org/message-id/OSCPR01MB149662AEA64F4E66F494C2584F5E3A%40OSCPR01MB14966.jpnprd01.prod.outlook.com Best regards, Hayato Kuroda FUJITSU LIMITED
