Re: Is custom MemoryContext prohibited?

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Is custom MemoryContext prohibited?
Дата
Msg-id 20200206031030.f7vgehw6kzile5ss@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: Is custom MemoryContext prohibited?  (Robert Haas <robertmhaas@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: Is custom MemoryContext prohibited?
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: typos in comments and user docs