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

Commit4493bfb

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 parentb59ae79 commit4493bfb

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
@@ -632,6 +632,10 @@ errcode_for_file_access(void)
632632
edata->sqlerrcode=ERRCODE_DISK_FULL;
633633
break;
634634

635+
caseENOMEM:/* Out of memory */
636+
edata->sqlerrcode=ERRCODE_OUT_OF_MEMORY;
637+
break;
638+
635639
caseENFILE:/* File table overflow */
636640
caseEMFILE:/* Too many open files */
637641
edata->sqlerrcode=ERRCODE_INSUFFICIENT_RESOURCES;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp