select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Supported versions: Current (18) / 17 / 16 / 15 / 14
Development versions: 19 / devel
Unsupported versions: 13 / 12 / 11 / 10 / 9.6 / 9.5 / 9.4 / 9.3 / 9.2 / 9.1 / 9.0 / 8.4 / 8.3 / 8.2 / 8.1 / 8.0 / 7.4
Historical version. PostgreSQL 7.4 reached end of support in October 2010. See the current version for supported releases.

SPI_pfree

Name

SPI_pfree -- free memory in the upper executor context

Synopsis

void SPI_pfree(void * pointer)

Description

SPI_pfree frees memory previously allocated using SPI_palloc or SPI_repalloc.

This function is no longer different from plain pfree. It's kept just for backward compatibility of existing code.

Arguments

void * pointer

pointer to existing storage to free

Report a documentation issue

Read the upstream documentation. For corrections, first check the current version.