Correct SQLSTATE for ENOMEM in file access
Alexander Kuzmenkov <akuzmenkov@timescale.com>
From: Alexander Kuzmenkov <akuzmenkov@timescale.com>
To: pgsql-hackers@postgresql.org
Date: 2024-02-02T19:02:37Z
Lists: pgsql-hackers
Attachments
- enomem-sqlstate-v1.patch (text/x-patch) patch v1
Looking through the logs of some server that were experiencing out of memory errors, I noticed that errcode_for_file_access() reports ERRCODE_INTERNAL_ERROR for ENOMEM, while the correct SQLSTATE for this should probably be ERRCODE_OUT_OF_MEMORY. Attached is a small patch to fix this. --- Alexander Kuzmenkov Timescale
Commits
-
Translate ENOMEM to ERRCODE_OUT_OF_MEMORY in errcode_for_file_access().
- e4e63cd98634 17.0 landed
- a15378100fae 16.2 landed
- 4493bfb709ae 12.18 landed
- 3766b8b64e1c 15.6 landed
- 329b9688208e 14.11 landed
- 29df29dad772 13.14 landed