Commit 677da8c
committed
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.com1 parent 0903bbd commit 677da8c
1 file changed
+4
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
400 | | - | |
401 | 400 | | |
402 | 401 | | |
403 | 402 | | |
| |||
445 | 444 | | |
446 | 445 | | |
447 | 446 | | |
448 | | - | |
449 | 447 | | |
450 | | - | |
| 448 | + | |
451 | 449 | | |
452 | 450 | | |
453 | | - | |
454 | 451 | | |
455 | 452 | | |
456 | 453 | | |
457 | 454 | | |
458 | 455 | | |
459 | 456 | | |
460 | 457 | | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
468 | 461 | | |
469 | 462 | | |
470 | 463 | | |
| |||
0 commit comments