pgsql: Use access() to check file existence in GetNewRelFileNode()

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема pgsql: Use access() to check file existence in GetNewRelFileNode()
Дата
Msg-id E1fc6UR-0002RF-GF@gemulon.postgresql.org
обсуждение исходный текст
Ответы Re: pgsql: Use access() to check file existence inGetNewRelFileNode()
Список pgsql-committers
Use access() to check file existence in GetNewRelFileNode()

Previous code used BasicOpenFile() and close() just to check for a file
collision, while there is no need to hold open a file descriptor but
that's an overkill here.

Author: Paul Guo
Reviewed-by: Peter Eisentraut, Michael Paquier
Discussion: https://postgr.es/m/CABQrizcUtiHaquxK=d4etBX8GF9kbZB50Nt1gO9_aN-e9SptyQ@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/677da8c15d19c11465d78f18bfd5ceb5d6fc3af1

Modified Files
--------------
src/backend/catalog/catalog.c | 15 ++++-----------
1 file changed, 4 insertions(+), 11 deletions(-)


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: pgsql: Add separate error message for procedure does not exist
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: pgsql: Use access() to check file existence inGetNewRelFileNode()