From: | Ashutosh Sharma <ashu(dot)coek88(at)gmail(dot)com> |
---|---|
To: | Michael Paquier <michael(at)paquier(dot)xyz> |
Cc: | Postgres hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Incorrect errno used with %m for backend code |
Date: | 2018-06-22 10:15:33 |
Message-ID: | CAE9k0PmsLE0E3u1D24VZB3C9=Qsj_D_3UmTiNL9ewMSnSpvArw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, Jun 22, 2018 at 2:44 PM, Michael Paquier <michael(at)paquier(dot)xyz> wrote:
> On Fri, Jun 22, 2018 at 01:00:45PM +0530, Ashutosh Sharma wrote:
>> It seems like in case of few system calls for e.g. write system call,
>> errno is not set even if the number of bytes written is smaller than
>> the bytes requested and for such cases we explicitly set an errno to
>> ENOSPC. Something like this,
>>
>> /*
>> * if write didn't set errno, assume problem is no disk space
>> */
>> errno = save_errno ? save_errno : ENOSPC;
>>
>> Shouldn't we do similar handling in your patch as well or please let
>> me know if i am missing something here.
>
> Yeah, I can see at least three of them in twophase.c. Let's fix those
> as well at the same time.
Okay, thanks for the confirmation. Few of them are also there in
origin.c and snapbuild.c files.
--
With Regards,
Ashutosh Sharma
EnterpriseDB:http://www.enterprisedb.com
From | Date | Subject | |
---|---|---|---|
Next Message | Etsuro Fujita | 2018-06-22 10:25:36 | Re: Wrong cost estimation for foreign tables join with use_remote_estimate disabled |
Previous Message | Alexander Korotkov | 2018-06-22 09:55:38 | Re: [HACKERS] GUC for cleanup indexes threshold. |