Expand description
Provides interfacing into Postgres’ MemoryContext
system.
The PgBox<T>
projects Postgres-allocated memory pointers as if they’re first-class Rust types.
An enum-based interface (PgMemoryContexts
) around Postgres’ various MemoryContext
s provides
simple accessibility to working with MemoryContexts in a compiler-checked manner
Structs§
- A
pg_sys::MemoryContext
that is owned byPgMemoryContexts::Owned
- A
pg_sys::MemoryContext
that allocated a specific pointer
Enums§
- An Enumeration of Postgres top-level MemoryContexts. Each have their own use and “lifetimes” as defined by Postgres’ memory management model.
Type Aliases§
- A shorter type name for a
*mut std::os::raw::c_void
- A shorter type name for a
*const std::os::raw::c_void