PostgreSQL Source Code  git master
MemoryContextMethods Struct Reference

#include <memnodes.h>

Data Fields

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

Detailed Description

Definition at line 57 of file memnodes.h.

Field Documentation

◆ alloc

◆ delete_context

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

Definition at line 64 of file memnodes.h.

Referenced by MemoryContextDelete().

◆ free_p

void(* MemoryContextMethods::free_p) (MemoryContext context, void *pointer)

Definition at line 61 of file memnodes.h.

Referenced by pfree().

◆ get_chunk_space

Size(* MemoryContextMethods::get_chunk_space) (MemoryContext context, void *pointer)

Definition at line 65 of file memnodes.h.

Referenced by GetMemoryChunkSpace().

◆ is_empty

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

Definition at line 66 of file memnodes.h.

Referenced by MemoryContextIsEmpty().

◆ realloc

void*(* MemoryContextMethods::realloc) (MemoryContext context, void *pointer, Size size)

Definition at line 62 of file memnodes.h.

Referenced by repalloc(), and repalloc_huge().

◆ reset

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

Definition at line 63 of file memnodes.h.

Referenced by MemoryContextResetOnly().

◆ stats

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

Definition at line 67 of file memnodes.h.

Referenced by MemoryContextStatsInternal().


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