diff options
author | Bruce Momjian <bruce@momjian.us> | 2010-06-01 02:54:37 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2010-06-01 02:54:37 +0000 |
commit | d149fbf4111ad30192ebae8e328dc7d790b2d5ee (patch) | |
tree | 7823c35e3440e1fc5ac68cab44b23188a81763b6 /doc/src | |
parent | 06625abeef3bdc7219cf9e2dc2bcd8311211ad40 (diff) | |
download | postgresql-d149fbf4111ad30192ebae8e328dc7d790b2d5ee.tar.gz postgresql-d149fbf4111ad30192ebae8e328dc7d790b2d5ee.zip |
Mention palloc/pfree for C++ memory allocation in docs.
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/extend.sgml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/sgml/extend.sgml b/doc/src/sgml/extend.sgml index d7e7aa96bd8..abacd71d743 100644 --- a/doc/src/sgml/extend.sgml +++ b/doc/src/sgml/extend.sgml @@ -1,4 +1,4 @@ -<!-- $PostgreSQL: pgsql/doc/src/sgml/extend.sgml,v 1.40 2010/06/01 02:35:37 momjian Exp $ --> +<!-- $PostgreSQL: pgsql/doc/src/sgml/extend.sgml,v 1.41 2010/06/01 02:54:37 momjian Exp $ --> <chapter id="extend"> <title>Extending <acronym>SQL</acronym></title> @@ -296,14 +296,14 @@ </listitem> <listitem> <para> - Use <function>malloc()</> to allocate any memory that might be + Use <function>palloc()</> to allocate any memory that might be freed by the backend C code (don't pass <function>new()</>-allocated memory). </para> </listitem> <listitem> <para> - Use <function>free()</> to free memory allocated by the backend + Use <function>pfree()</> to free memory allocated by the backend C code (do not use <function>delete()</> for such cases). </para> </listitem> |