Re: libpq docs about PQfreemem - Mailing list pgsql-hackers

From Zeugswetter Andreas ADI SD
Subject Re: libpq docs about PQfreemem
Date
Msg-id E1539E0ED7043848906A8FF995BDA57901C12E32@m0143.s-mxs.net
Whole thread Raw
In response to Re: libpq docs about PQfreemem  (Bruce Momjian <bruce@momjian.us>)
Responses Re: libpq docs about PQfreemem  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
> > future for some reason. (the doc for the other functions say you
have to
> > use PQfreemem without mentioning any exceptions)
> >
> > Thoughts? Rip out or update?
>
> Are you saying that almost all Win32 binaries and libraries now can
free
> across DLLs?

You can under very narrow conditions. You need to force code generation
for "Multithreaded DLL" run-time libraries (e.g. in VC6 msvcrt.dll)
for all exe's and dll's.
This is bad for debugging, memory checkers and probably impossible
when using different compilers.
So you really need PQfreemem.

Andreas


pgsql-hackers by date:

Previous
From: jon5pg@streamy.com
Date:
Subject: Re: Pl/pgsql functions causing crashes in 8.2.2
Next
From: "Simon Riggs"
Date:
Subject: Re: Proposed adjustments in MaxTupleSize andtoastthresholds