postgresql_16:6.10.3.1.1 Description
PostgreSQL 16 > Server Programming > Server Programming Interface > Memory Management > SPI_palloc > Description
SPI_palloc allocates memory in the upper executor context.
This function can only be used while connected to SPI. Otherwise, it throws an error.