[][src]Module pgx::memcxt

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

Enums

PgMemoryContexts

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

Type Definitions

void_mut_ptr

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

void_ptr

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