Re: checking return value from unlink in write_relcache_init_file

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: checking return value from unlink in write_relcache_init_file
Дата
Msg-id 202106040055.zkuodwr4lwq7@alvherre.pgsql
обсуждение исходный текст
Ответ на Re: checking return value from unlink in write_relcache_init_file  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: checking return value from unlink in write_relcache_init_file  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
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.

-- 
Álvaro Herrera       Valdivia, Chile
"Pensar que el espectro que vemos es ilusorio no lo despoja de espanto,
sólo le suma el nuevo terror de la locura" (Perelandra, C.S. Lewis)



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Jeff Davis
Дата:
Сообщение: Re: RFC: Table access methods and scans
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: BUG #16079: Question Regarding the BUG #16064