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 by date:
Соглашаюсь с условиями обработки персональных данных