Translate ENOMEM to ERRCODE_OUT_OF_MEMORY in errcode_for_file_access().
commite4e63cd9863480698ef97009f132c9854cce8407
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 2 Feb 2024 20:34:29 +0000 (2 15:34 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 2 Feb 2024 20:34:29 +0000 (2 15:34 -0500)
tree761ee078bdc78814f11af2f72cac2745b165d0d7
parentd212957254de85aad934e2601e5a07661db268fb
Translate ENOMEM to ERRCODE_OUT_OF_MEMORY in errcode_for_file_access().

Previously you got ERRCODE_INTERNAL_ERROR, which seems inappropriate,
especially given that we're trying to avoid emitting that in reachable
cases.

Alexander Kuzmenkov

Discussion: https://postgr.es/m/CALzhyqzgQph0BY8-hFRRGdHhF8CoqmmDHW9S=hMZ-HMzLxRqDQ@mail.gmail.com
src/backend/utils/error/elog.c