mirror of
https://github.com/postgres/postgres.git
synced 2025-05-05 09:19:17 +03:00
Update PQfree() documentation to be clearer, backpatch to 8.2.X.
This commit is contained in:
parent
7c2e6f31be
commit
c2039e4477
@ -1,4 +1,4 @@
|
|||||||
<!-- $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.220.2.5 2007/02/06 03:05:00 tgl Exp $ -->
|
<!-- $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.220.2.6 2007/02/19 22:06:30 momjian Exp $ -->
|
||||||
|
|
||||||
<chapter id="libpq">
|
<chapter id="libpq">
|
||||||
<title><application>libpq</application> - C Library</title>
|
<title><application>libpq</application> - C Library</title>
|
||||||
@ -2611,9 +2611,13 @@ void PQfreemem(void *ptr);
|
|||||||
<function>PQescapeBytea</function>,
|
<function>PQescapeBytea</function>,
|
||||||
<function>PQunescapeBytea</function>,
|
<function>PQunescapeBytea</function>,
|
||||||
and <function>PQnotifies</function>.
|
and <function>PQnotifies</function>.
|
||||||
It is needed by Microsoft Windows, which cannot free memory across
|
It is particularly important that this function, rather than
|
||||||
DLLs, unless multithreaded DLLs (<option>/MD</option> in VC6) are used.
|
<function>free()</>, be used on Microsoft Windows. This is because
|
||||||
On other platforms, this function is the same as the standard library function <function>free()</>.
|
allocating memory in a DLL and releasing it in the application works
|
||||||
|
only if multithreaded/single-threaded, release/debug, and static/dynamic
|
||||||
|
flags are the same for the DLL and the application. On non-Microsoft
|
||||||
|
Windows platforms, this function is the same as the standard library
|
||||||
|
function <function>free()</>.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user