MCPcopy Create free account
hub / github.com/apache/cloudberry / MemoryContextSwitchTo

Function MemoryContextSwitchTo

src/include/utils/palloc.h:167–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165
166#ifndef FRONTEND
167static inline MemoryContext
168MemoryContextSwitchTo(MemoryContext context)
169{
170 MemoryContext old = CurrentMemoryContext;
171
172 CurrentMemoryContext = context;
173 return old;
174}
175#endif /* FRONTEND */
176
177/* Registration of memory context reset/delete callbacks */

Callers 15

GetConnectionFunction · 0.85
create_cursorFunction · 0.85
fetch_more_dataFunction · 0.85
convert_prep_stmt_paramsFunction · 0.85
analyze_row_processorFunction · 0.85
pg_visibility_map_relFunction · 0.85
pg_visibility_relFunction · 0.85
pg_check_frozenFunction · 0.85
pg_check_visibleFunction · 0.85
sepgsql_avc_computeFunction · 0.85

Calls

no outgoing calls

Tested by 15

CreateMemoryContextFunction · 0.68
SetUpMethod · 0.68
SetUpMethod · 0.68
init_memory_contextFunction · 0.68
setup_data_structuresFunction · 0.68
pg_decode_changeFunction · 0.68
pg_decode_truncateFunction · 0.68