Translate ENOMEM to ERRCODE_OUT_OF_MEMORY in errcode_for_file_access().

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 4493bfb709ae1b83e537daf82014d9b5ad65b26d
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2024-02-02T20:34:29Z
Releases: 12.18
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

Files

PathChange+/−
src/backend/utils/error/elog.c modified +4 −0

Discussion