SPI_REPALLOC(3)
okay bestie, this is the SPI_REPALLOC(3) page from the PostgreSQL 13.23 docs, and we're gonna make it make sense π
β¨ NAME β¨
SPI_repalloc β reallocate memory in the upper executor context π«Ά
πΈ SYNOPSIS πΈ
void * SPI_repalloc(void * pointer, Size size)
π DESCRIPTION π
SPI_repalloc changes the size of a memory segment previously allocated using SPI_palloc. literally that's the whole vibe.
and here's the tea: this function is no longer different from plain repalloc. It's kept just for backward compatibility of existing code. so if you see it out there, that's why β iconic but legacy π
π ARGUMENTS π
void * pointerβ pointer to existing storage to changeSize sizeβ size in bytes of storage to allocate
π¦ RETURN VALUE π¦
returns a pointer to new storage space of the specified size, with the contents copied from the existing area β¨
bestie, that's the page: PostgreSQL 13.23, 2025, and we're out π
π¦ where this page comes from
- opensuse-leap 16.0: postgresql13-docs 13.23-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