Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit329b968

Browse files
committed
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 reachablecases.Alexander KuzmenkovDiscussion:https://postgr.es/m/CALzhyqzgQph0BY8-hFRRGdHhF8CoqmmDHW9S=hMZ-HMzLxRqDQ@mail.gmail.com
1 parent35b8b2c commit329b968

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎src/backend/utils/error/elog.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,10 @@ errcode_for_file_access(void)
760760
edata->sqlerrcode=ERRCODE_DISK_FULL;
761761
break;
762762

763+
caseENOMEM:/* Out of memory */
764+
edata->sqlerrcode=ERRCODE_OUT_OF_MEMORY;
765+
break;
766+
763767
caseENFILE:/* File table overflow */
764768
caseEMFILE:/* Too many open files */
765769
edata->sqlerrcode=ERRCODE_INSUFFICIENT_RESOURCES;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp