1SPI_PALLOC(3) PostgreSQL 14.3 Documentation SPI_PALLOC(3)
23
4
NAME
6SPI_palloc - allocate memory in the upper executor context
7
SYNOPSIS
9void * SPI_palloc(Size size)
10
DESCRIPTION
12SPI_palloc allocates memory in the upper executor context.
1314
This function can only be used while connected to SPI. Otherwise, it
15throws an error.
16
ARGUMENTS
18Size size
19size in bytes of storage to allocate
20
RETURN VALUE
22pointer to new storage space of the specified size
2324
25
26
PostgreSQL 14.3 2022 SPI_PALLOC(3)