Re: pg_log_fatal vs pg_log_error
| От | Peter Eisentraut |
|---|---|
| Тема | Re: pg_log_fatal vs pg_log_error |
| Дата | |
| Msg-id | c3bae0c8-9fda-2b0d-f3be-90fe069da0af@2ndquadrant.com обсуждение исходный текст |
| Ответ на | pg_log_fatal vs pg_log_error (Antonin Houska <ah@cybertec.at>) |
| Ответы |
Re: pg_log_fatal vs pg_log_error
|
| Список | pgsql-hackers |
On 2019-06-17 14:19, Antonin Houska wrote: > Can anyone please give me a hint (and possibly add some comments to the code) > when pg_log_fatal() should be used in frontend code and when it's appropriate > to call pg_log_error()? The current use does not seem very consistent. For a program that runs in a loop, like for example psql or pg_receivewal, use error if the program keeps running and fatal if not. For one-shot programs like for example createdb, there is no difference, so we have used error in those cases. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
В списке pgsql-hackers по дате отправления: