ECPGdebug(int on, FILE
     *stream) turns on debug
     logging if called with the first argument non-zero. Debug logging
     is done on stream. Most
     SQL statement log their arguments and results.
    
     The most important function, ECPGdo, logs
     all SQL statements with both the expanded
     string, i.e. the string with all the input variables inserted,
     and the result from the PostgreSQL
     server. This can be very useful when searching for errors in your
     SQL statements.