David Rowley <[email protected]> writes: > I did see that PostGIS does use > MemoryContextContains(), though I didn't look at their code to figure > out if they're always passing it a pointer to an allocated chunk.
As far as I can tell from a cursory look, they should be able to use
the GetMemoryChunkContext workaround, because they are just doing this
with SHARED_GSERIALIZED objects, which seem to always be palloc'd.
regards, tom lane
