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

Function SPI_palloc

src/backend/executor/spi.c:1365–1372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1363}
1364
1365void *
1366SPI_palloc(Size size)
1367{
1368 if (_SPI_current == NULL)
1369 elog(ERROR, "SPI_palloc called while not connected to SPI");
1370
1371 return MemoryContextAlloc(_SPI_current->savedcxt, size);
1372}
1373
1374void *
1375SPI_repalloc(void *pointer, Size size)

Callers 4

_SPI_strdupFunction · 0.85
GppcSPIGetValueFunction · 0.85
get_hints_from_tableFunction · 0.85

Calls 1

MemoryContextAllocFunction · 0.85

Tested by

no test coverage detected