 per connection.  If the
       event procedure fails, the registration is aborted.

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

       When a <TT
CLASS="LITERAL"
>PGEVT_REGISTER</TT
> event is received, the
       <TT
CLASS="PARAMETER"
>evtInfo</TT
> pointer should be cast to a
       <TT
CLASS="STRUCTNAME"
>PGEventRegister *</TT
>.  This structure contains a
       <TT
CLASS="STRUCTNAME"
>PGconn</TT
> that should be in the
       <TT
CLASS="LITERAL"
>CONNECT