>>>>> "Tom" == Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:
Tom> It's hardly surprising that datumCopy would segfault when given a
Tom> null "value" and told it is pass-by-reference. However, to get to
Tom> the datumCopy call, we must have passed the MemoryContextContains
Tom> check on that very same pointer value, and that would surely have
Tom> segfaulted as well, one would think.
Nope, because MemoryContextContains just returns "false" if passed a
NULL pointer.
--
Andrew (irc:RhodiumToad)