Re: PQescapeBytea on Win32 - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: PQescapeBytea on Win32
Date
Msg-id 200303221816.h2MIGgc20381@candle.pha.pa.us
Whole thread Raw
In response to Re: PQescapeBytea on Win32  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: PQescapeBytea on Win32  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > I have modified the patch to call it PQfreemem(), in case there are other
> > cases we need to free libpq memory.
> 
> Doesn't this duplicate a function that we already invented for PQnotify
> structs?

Yep, I see it now:/* * PQfreeNotify - free's the memory associated with a PGnotify * * This function is needed on
Windowswhen using libpq.dll and * for example libpgtcl.dll: All memory allocated inside a dll * should be freed in the
contextof the same dll. * */voidPQfreeNotify(PGnotify *notify){    free(notify);}
 

What do you recommend?  Do we depricate PQfreeNotify?

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: A bad behavior under autocommit off mode
Next
From: Tom Lane
Date:
Subject: Re: PQescapeBytea on Win32