PostgreSQL Source Code  git master
MemoryContextMethods Struct Reference

#include <memnodes.h>

Data Fields

void *(* alloc )(MemoryContext context, Size size, int flags)
 
void(* free_p )(void *pointer)
 
void *(* realloc )(void *pointer, Size size, int flags)
 
void(* reset )(MemoryContext context)
 
void(* delete_context )(MemoryContext context)
 
MemoryContext(* get_chunk_context )(void *pointer)
 
Size(* get_chunk_space )(void *pointer)
 
bool(* is_empty )(MemoryContext context)
 
void(* stats )(MemoryContext context, MemoryStatsPrintFunc printfunc, void *passthru, MemoryContextCounters *totals, bool print_to_stderr)
 

Detailed Description

Definition at line 58 of file memnodes.h.

Field Documentation

◆ alloc

void*(* MemoryContextMethods::alloc) (MemoryContext context, Size size, int flags)

Definition at line 66 of file memnodes.h.

◆ delete_context

void(* MemoryContextMethods::delete_context) (MemoryContext context)

Definition at line 86 of file memnodes.h.

◆ free_p

void(* MemoryContextMethods::free_p) (void *pointer)

Definition at line 69 of file memnodes.h.

◆ get_chunk_context

MemoryContext(* MemoryContextMethods::get_chunk_context) (void *pointer)

Definition at line 89 of file memnodes.h.

◆ get_chunk_space

Size(* MemoryContextMethods::get_chunk_space) (void *pointer)

Definition at line 95 of file memnodes.h.

◆ is_empty

bool(* MemoryContextMethods::is_empty) (MemoryContext context)

Definition at line 101 of file memnodes.h.

◆ realloc

void*(* MemoryContextMethods::realloc) (void *pointer, Size size, int flags)

Definition at line 76 of file memnodes.h.

◆ reset

void(* MemoryContextMethods::reset) (MemoryContext context)

Definition at line 83 of file memnodes.h.

◆ stats

void(* MemoryContextMethods::stats) (MemoryContext context, MemoryStatsPrintFunc printfunc, void *passthru, MemoryContextCounters *totals, bool print_to_stderr)

Definition at line 102 of file memnodes.h.

Referenced by MemoryContextStatsInternal().


The documentation for this struct was generated from the following file: