# PHP 函数:pg\_FreeResult()

**URL:** <https://www.isharkfly.com/t/php-pg-freeresult/2788>\
**Category:** PHP\
**Created:** [October 27, 2012, 3:17am UTC](https://www.isharkfly.com/t/php-pg-freeresult/2788 "2012-10-27T03:17:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![honeymoose](https://www.isharkfly.com/user_avatar/www.isharkfly.com/honeymoose/32/20796_2.png) [@honeymoose](https://www.isharkfly.com/u/honeymoose)\
**Post date:** [October 27, 2012, 3:17am UTC](https://www.isharkfly.com/t/php-pg-freeresult/2788/1 "2012-10-27T03:17:26Z")

</div>

释放返回占用内存。

语法: boolean pg\_freeresult(int result);

返回值: 布尔值

函数种类: 数据库功能

内容说明  
本函数可以释放目前 PostgreSQL 数据库 query 返回所占用的内存。一般只有在非常担心在内存的使用上可能会不足的情形下才会用本函数。PHP 程序会在结束时自动释放。参数 result 为查询结果代码。
