Re: PQescapeBytea on Win32
| От | Bruce Momjian |
|---|---|
| Тема | Re: PQescapeBytea on Win32 |
| Дата | |
| Msg-id | 200303221816.h2MIGgc20381@candle.pha.pa.us обсуждение исходный текст |
| Ответ на | Re: PQescapeBytea on Win32 (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: PQescapeBytea on Win32
|
| Список | 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 по дате отправления: