ly clean up its event data as libpq has no
       ability to manage this memory.  Failure to clean up will lead
       to memory leaks.

</P><PRE
CLASS="SYNOPSIS"
>typedef struct
{
    PGconn *conn;
} PGEventConnDestroy;</PRE
><P>

       When a <TT
CLASS="LITERAL"
>PGEVT_CONNDESTROY</TT
> event is received, the
       <TT
CLASS="PARAMETER"
>evtInfo</TT
> pointer should be cast to a
       <TT
CLASS="STRUCTNAME"
>PGEventConnDestroy *</TT
>.  This event is fired
       prior to <CODE
CLASS="FUNCTION"
>PQfini