diff options
author | Michael Paquier <michael@paquier.xyz> | 2018-07-08 18:53:20 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2018-07-08 18:53:20 +0900 |
commit | 677da8c15d19c11465d78f18bfd5ceb5d6fc3af1 (patch) | |
tree | 5922d5e71afbebaa190370541bdf02c45fec1345 /contrib/postgres_fdw/postgres_fdw.c | |
parent | 0903bbdad24a8f51b18a6a54a41bbb36ad2ceee4 (diff) | |
download | postgresql-677da8c15d19c11465d78f18bfd5ceb5d6fc3af1.tar.gz postgresql-677da8c15d19c11465d78f18bfd5ceb5d6fc3af1.zip |
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
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions