SPI_PALLOC(3)
β¨ NAME β¨
SPI_palloc β allocate memory in the upper executor context π
okay bestie, you're on the SPI_PALLOC(3) page from the PostgreSQL 15.19 documentation, and this one is short but iconic β¨
π SYNOPSIS π
void * SPI_palloc(Size size)
π¦ DESCRIPTION π¦
SPI_palloc allocates memory in the upper executor context. That's the whole vibe π«Ά
important: this function can only be used while connected to SPI. Otherwise, it throws an error β no cap, it will not play nice outside SPI π
πΈ ARGUMENTS πΈ
Size sizeβ the size, in bytes, of the storage to allocate π
π RETURN VALUE π
a pointer to the new storage space of the specified size β slay β¨
mwah π that's the whole page from the PostgreSQL 15.19 docs, dated 2026 β SPI_PALLOC(3), signing off π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: postgresql15-docs 15.19-160000.1.1 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms