[PATCH] Use access() to check file existence in GetNewRelFileNode().

Поиск
Список
Период
Сортировка
От Paul Guo
Тема [PATCH] Use access() to check file existence in GetNewRelFileNode().
Дата
Msg-id CABQrizcUtiHaquxK=d4etBX8GF9kbZB50Nt1gO9_aN-e9SptyQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: [PATCH] Use access() to check file existence inGetNewRelFileNode().
Список pgsql-hackers
Previous code uses BasicOpenFile() + close().

access() should be faster than BasicOpenFile()+close() and access()
should be more correct since BasicOpenFile() could fail for various
cases (e.g. due to file permission, etc) even the file exists.

access() is supported on Linux/Unix. I do not have a Windows dev environment, but MSDN tells me that access() is supported on Windows also and there have been access() call in the workspace, so I assume there is no portability issue.

Thanks.
Вложения

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

Предыдущее
От: Konstantin Knizhnik
Дата:
Сообщение: Possible bug in logical replication.
Следующее
От: Konstantin Knizhnik
Дата:
Сообщение: Re: Removing unneeded self joins