stev knowles <stev@Precision.Guesswork.COM> writes:
> i am using a C interface into the database, based on the example code.
> occasionally, one of my INSERT's fails, with: INSERT command failed:
> PGRES_FATAL_ERROR.
You might want to change your code so it prints the PQresultErrorMessage,
and not (or at least not only) PQresultStatus.
regards, tom lane