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

Function SPI_InitMemoryReservation

src/backend/executor/spi.c:3477–3489  ·  view source on GitHub ↗

* Initialize the SPI memory reservation stack. See SPI_ReserveMemory() for detailed comments on how this stack * is used. */

Source from the content-addressed store, hash-verified

3475 * is used.
3476 */
3477void SPI_InitMemoryReservation(void)
3478{
3479 Assert(!IsResManagerMemoryPolicyNone());
3480
3481 if (IsResGroupEnabled())
3482 {
3483 SPIMemReserved = 0;
3484 }
3485 else
3486 {
3487 SPIMemReserved = (uint64) statement_mem * 1024L;;
3488 }
3489}
3490
3491/**
3492 * Push memory reserved for next SPI call. It is possible for an operator to (after several levels of nesting),

Callers 2

InitResManagerFunction · 0.85
mppExecutorCleanupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected