From: | Chapman Flack <chap(at)anastigmatix(dot)net> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | Andres Freund <andres(at)anarazel(dot)de>, Tomas Vondra <tomas(dot)vondra(at)2ndquadrant(dot)com>, Kohei KaiGai <kaigai(at)heterodb(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Is custom MemoryContext prohibited? |
Date: | 2020-02-05 15:52:25 |
Message-ID: | 14026d51-ad19-c435-f677-40ffa8a952bc@anastigmatix.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 2/5/20 10:20 AM, Tom Lane wrote:
> * Third-party context types would have to force the compiler to take
> context-type values that weren't among the known enum values ---
Doesn't that seem like a long run for a short slide? An extension
author gets expected to do something awkward-bordering-on-smelly
so that debugging can rely on an enum saying "this is a Foo" rather
than a string saying "this is a Foo"?
Granted, it's possible the extension-authoring situation is rare,
and debugging often happens under time pressure and dire stakes,
so perhaps that would be the right balance for this case. I have
certainly seen emails from Tom in this space with the analysis of
some reported bug completed preternaturally fast, so if he judges
that losing the enum would make that harder, that's something.
Regards,
-Chap
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2020-02-05 15:56:42 | Re: Is custom MemoryContext prohibited? |
Previous Message | Konstantin Knizhnik | 2020-02-05 15:48:38 | Re: [Proposal] Global temporary tables |