diff options
Diffstat (limited to 'src/backend/utils/error/elog.c')
-rw-r--r-- | src/backend/utils/error/elog.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/backend/utils/error/elog.c b/src/backend/utils/error/elog.c index 3e42f5754fe..479e312ba72 100644 --- a/src/backend/utils/error/elog.c +++ b/src/backend/utils/error/elog.c @@ -929,6 +929,10 @@ errcode_for_file_access(void) edata->sqlerrcode = ERRCODE_IO_ERROR; break; + case ENAMETOOLONG: /* File name too long */ + edata->sqlerrcode = ERRCODE_FILE_NAME_TOO_LONG; + break; + /* All else is classified as internal errors */ default: edata->sqlerrcode = ERRCODE_INTERNAL_ERROR; |