Re: DSA_ALLOC_NO_OOM doesn't work

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
Subject: Re: DSA_ALLOC_NO_OOM doesn't work
Date: 2024-02-22 04:25:42
Message-ID: CA+TgmoYXziAkvDnYu5BKgVHspYtLpC94fEq2h+Yb6RTAurPEGg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

On Thu, Feb 22, 2024 at 12:49 AM Heikki Linnakangas <hlinnaka(at)iki(dot)fi> wrote:
> That's fair, I can see those reasons. Nevertheless, I do think it was a
> bad tradeoff. A little bit of repetition would be better here, or we can
> extract the common parts to smaller functions.
>
> I came up with the attached:
>
> 25 files changed, 1710 insertions(+), 1113 deletions(-)
>
> So yeah, it's more code, and there's some repetition, but I think this
> is more readable. Some of that is extra boilerplate because I split the
> implementations to separate files, and I also added tests.

Adding tests is great. I'm unenthusiastic about the rest, but I don't
really care enough to argue.

What's the goal here, anyway? I mean, why bother?

--
Robert Haas
EDB: http://www.enterprisedb.com

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2024-02-22 05:25:39 BUG #18358: I am not able to change the existing SQL connection to Postgres connection in existing application
Previous Message PG Bug reporting form 2024-02-22 03:56:31 BUG #18357: PGJDBC: how to pass the user defined type as input parameter to store procedure

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrei Lepikhov 2024-02-22 04:37:42 Re: Unlinking Parallel Hash Join inner batch files sooner
Previous Message Andrei Lepikhov 2024-02-22 04:18:42 Re: POC: GROUP BY optimization