 reference on how to correctly implement the logic
    described above. It can also be extended as needed to support specific
    configurations and environments.
   </P
><P
>    The method for triggering failover is an important part of planning
    and design. One potential option is the <TT
CLASS="VARNAME"
>restore_command</TT
>
    command.  It is executed once for each WAL file, but the process
    running the <TT
CLASS="VARNAME"
>restore_command</TT
> is created and dies for
    each file, so there is