Re: checking return value from unlink in write_relcache_init_file
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: checking return value from unlink in write_relcache_init_file |
| Дата | |
| Msg-id | 111890.1622769374@sss.pgh.pa.us обсуждение |
| Ответ на | Re: checking return value from unlink in write_relcache_init_file (Alvaro Herrera <alvherre@alvh.no-ip.org>) |
| Ответы |
Re: checking return value from unlink in write_relcache_init_file
|
| Список | pgsql-hackers |
Alvaro Herrera <alvherre@alvh.no-ip.org> writes:
> On 2021-Jun-03, Tom Lane wrote:
>> If the unlink fails, there's only really a problem if the subsequent
>> open() fails to overwrite the file --- and that stanza is perfectly
>> capable of complaining for itself. So I think the code is fine and
>> there's no need for a separate message about the unlink. Refusing to
>> proceed, as you've done here, is strictly worse than what we have.
> It does seem to deserve a comment explaining this.
Agreed, the existing comment there is a tad terse.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера