checking return value from unlink in write_relcache_init_file

Поиск
Список
Период
Сортировка
От Zhihong Yu
Тема checking return value from unlink in write_relcache_init_file
Дата
Msg-id CALNJ-vT-oSAO7yDQ6bQuXbAtJ9=zTznLidoMJ3CBs2EYQUuu3g@mail.gmail.com
обсуждение исходный текст
Ответы Re: checking return value from unlink in write_relcache_init_file  (Justin Pryzby <pryzby@telsasoft.com>)
Re: checking return value from unlink in write_relcache_init_file  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Hi,
I was looking at write_relcache_init_file() where an attempt is made to unlink the tempfilename.

However, the return value is not checked.
If the tempfilename is not removed (the file exists), I think we should log a warning and proceed.

Please comment on the proposed patch.

Thanks
Вложения

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

Предыдущее
От: Isaac Morland
Дата:
Сообщение: Re: DELETE CASCADE
Следующее
От: Justin Pryzby
Дата:
Сообщение: Re: checking return value from unlink in write_relcache_init_file