Refactor code checking for file existence
Michael Paquier <michael@paquier.xyz>
Refactor code checking for file existence jit.c and dfgr.c had a copy of the same code to check if a file exists or not, with a twist: jit.c did not check for EACCES when failing the stat() call for the path whose existence is tested. This refactored routine will be used by an upcoming patch. Reviewed-by: Ashutosh Bapat Discussion: https://postgr.es/m/ZTiV8tn_MIb_H2rE@paquier.xyz
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/jit/jit.c | modified | +1 −19 |
| src/backend/storage/file/fd.c | modified | +23 −0 |
| src/backend/utils/fmgr/dfmgr.c | modified | +4 −21 |
| src/include/storage/fd.h | modified | +1 −0 |
Discussion
- Adding facility for injection points (or probe points?) for more advanced tests 59 messages · 2023-10-25 → 2025-04-14