SPI_REPALLOC(3)
π NAME π
okay bestie, welcome to SPI_REPALLOC(3) β the PostgreSQL 16.15 docs page for SPI_repalloc β reallocate memory in the upper executor context β¨
β¨ SYNOPSIS β¨
void * SPI_repalloc(void * pointer, Size size)
π¦ DESCRIPTION π¦
okay so SPI_repalloc changes the size of a memory segment that was previously allocated using SPI_palloc. That's the whole gig π«Ά
and here's the tea: this function is no longer different from plain repalloc. It's kept just for backward compatibility of existing code. periodt π
π ARGUMENTS π
void * pointerβ pointer to existing storage to change. like, the storage you're resizing, bestie πSize sizeβ size in bytes of storage to allocate. the new size in bytes, slay β¨
πΈ RETURN VALUE πΈ
You get back a pointer to new storage space of specified size, with the contents copied from the existing area. iconic π
PostgreSQL 16.15 Β· 2026 β that's the source/version and date, bestie; now go resize responsibly π π
π¦ where this page comes from
- opensuse-leap 16.0: postgresql16-docs 16.15-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