Re: Is custom MemoryContext prohibited? - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Is custom MemoryContext prohibited?
Date
Msg-id 20200206031030.f7vgehw6kzile5ss@alap3.anarazel.de
Whole thread Raw
In response to Re: Is custom MemoryContext prohibited?  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On 2020-02-05 10:40:59 -0500, Robert Haas wrote:
> I'm pretty unimpressed with the enum proposal - I think it's pretty
> nasty for an extension author to have to make up a value that's not in
> the enum. One, how are they supposed to know that they should do that?
> Two, how are they supposed to know that the code doesn't actually
> depend on that enum value for anything important? And three, how do
> they know that the compiler isn't going to hose them by assuming that
> isn't a can't-happen scenario?
>
> I mean, I'd rather get a patch committed here than not, but I have a
> hard time understanding why this is a good way to go.

+1



pgsql-hackers by date:

Previous
From: Andres Freund
Date:
Subject: Re: Is custom MemoryContext prohibited?
Next
From: Amit Kapila
Date:
Subject: Re: typos in comments and user docs