pub unsafe fn MemoryContextIsValid(context: *mut MemoryContextData) -> bool
Expand description

Returns true if memory context is valid, as Postgres determines such a thing.

Safety

Caller must determine that the specified context pointer, if it’s probably a [MemoryContextData] pointer, really is. This function is a best effort, not a guarantee.

Implementation Note

If Postgres adds more memory context types in the future, we need to do that here too.