Module pgx::memcxt

source · []
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 MemoryContexts provides simple accessibility to working with MemoryContexts in a compiler-checked manner

Structs

A pg_sys::MemoryContext that is owned by PgMemoryContexts::Owned

Enums

An Enumeration of Postgres top-level MemoryContexts. Each have their own use and “lifetimes” as defined by Postgres’ memory management model.

Type Definitions

A shorter type name for a *mut std::os::raw::c_void

A shorter type name for a *const std::os::raw::c_void