Re: remove some STATUS_* symbols
| От | Robert Haas |
|---|---|
| Тема | Re: remove some STATUS_* symbols |
| Дата | |
| Msg-id | CA+TgmobAKj_skqbmeTcG7kXT5hXF1MkCofu5kqrhAm=3ohVh9A@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: remove some STATUS_* symbols (Michael Paquier <michael@paquier.xyz>) |
| Ответы |
Re: remove some STATUS_* symbols
|
| Список | pgsql-hackers |
On Thu, Jan 16, 2020 at 12:50 AM Michael Paquier <michael@paquier.xyz> wrote: > Thanks, that looks fine. I am still not sure whether the second patch > adding an enum via ProcWaitStatus improves the code readability > though, so my take would be to discard it for now. Perhaps others > think differently, I don't know. IMHO, custom enums for each particular case would be a big improvement over supposedly-generic STATUS codes. It makes it clearer which values are possible in each code path, and it comes out nicer in the debugger, too. -- Robert Haas EnterpriseDB: http://www.enterprisedb.com The Enterprise PostgreSQL Company
В списке pgsql-hackers по дате отправления: