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-e9sp...@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(-)
