Correct SQLSTATE for ENOMEM in file access - Mailing list pgsql-hackers

From Alexander Kuzmenkov
Subject Correct SQLSTATE for ENOMEM in file access
Date
Msg-id CALzhyqzgQph0BY8-hFRRGdHhF8CoqmmDHW9S=hMZ-HMzLxRqDQ@mail.gmail.com
Whole thread Raw
Responses Re: Correct SQLSTATE for ENOMEM in file access
List pgsql-hackers
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

Attachment

pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_language(langispl) column apparently not needed
Next
From: Alena Rybakina
Date:
Subject: Re: POC, WIP: OR-clause support for indexes