Re: Some interesting news about Linux 3.12 OOM - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Some interesting news about Linux 3.12 OOM
Date
Msg-id CA+TgmoZSUhv6L5y21cYvY1giqtZKvCp_vF6MOKE2Q0ksGxvAvw@mail.gmail.com
Whole thread Raw
In response to Re: Some interesting news about Linux 3.12 OOM  (Merlin Moncure <mmoncure@gmail.com>)
Responses Re: Some interesting news about Linux 3.12 OOM
Re: Some interesting news about Linux 3.12 OOM
List pgsql-hackers
On Thu, Sep 19, 2013 at 11:30 AM, Merlin Moncure <mmoncure@gmail.com> wrote:
> On Thu, Sep 19, 2013 at 9:12 AM, Robert Haas <robertmhaas@gmail.com> wrote:
>>> But, naturally, that will not be a problem
>>> since all user-space code diligently checks the return status of every
>>> system call and responds with well-tested error-handling code when
>>> things go wrong.
>
> That just short circuited my sarcasm detector.

I laughed, too, but the reality is that at least as far as PG is
concerned it's probably a truthful statement, and if it isn't, nobody
here is likely to complain about having to fix it.  Yeah, there's a
lot of other code out there not as well written or maintained as PG,
but using SIGKILL as a substitute for ENOMEM because people might not
be checking the return value for malloc() is extremely heavy-handed
nannyism.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: dynamic shared memory
Next
From: Andres Freund
Date:
Subject: Re: Some interesting news about Linux 3.12 OOM