Re: [PATCH]Add a tip to the check mode
От | Matthias van de Meent |
---|---|
Тема | Re: [PATCH]Add a tip to the check mode |
Дата | |
Msg-id | CAEze2WguW_xO-4=8X-4GDz=XN2oKoswa+TgG200Nnwd+hh9-Dg@mail.gmail.com обсуждение исходный текст |
Ответ на | [PATCH]Add a tip to the check mode ("Wen Yi" <wen-yi@qq.com>) |
Ответы |
Re: [PATCH]Add a tip to the check mode
|
Список | pgsql-hackers |
On Tue, 11 Jul 2023 at 15:11, Wen Yi <wen-yi@qq.com> wrote: > > Hi community, > when I learn the source of PostgreSQL, I think it's better to add a tip to the postgres "check mode", this can help thepostgres's user when they check the postgres's data directory. > > src/backend/bootstrap/bootstrap.c > > if (check_only) > { > SetProcessingMode(NormalProcessing); > CheckerModeMain(); > abort(); > } > > Instead of > > if (check_only) > { > SetProcessingMode(NormalProcessing); > CheckerModeMain(); > printf("PostgreSQL check success, there's no problem\n"); > abort(); > } I'm afraid I don't understand the point of your suggestion. CheckerModeMain doesn't return (it unconditionally calls proc_exit(), which doesn't return) - it shouldn't hit the abort() clause. If it did hit the abort() clause, that'd probably be a problem on its own, right? -- Kind regards, Matthias van de Meent Neon (https://neon.tech)
В списке pgsql-hackers по дате отправления: