aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2018-07-08 18:53:20 +0900
committerMichael Paquier <michael@paquier.xyz>2018-07-08 18:53:20 +0900
commit677da8c15d19c11465d78f18bfd5ceb5d6fc3af1 (patch)
tree5922d5e71afbebaa190370541bdf02c45fec1345 /contrib/postgres_fdw/postgres_fdw.c
parent0903bbdad24a8f51b18a6a54a41bbb36ad2ceee4 (diff)
downloadpostgresql-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