"Raymond C. Rodgers" <sinful622@gmail.com> writes:
> I haven't been working with libpq-fe for long (only the last month or
> so) but I've had the good fortune of being able to figure out and solve
> most problems I've encountered within a few minutes to an hour, but this
> one is different.
I think you're going to kick yourself:
> PQexecPrepared(DB,"insertData",12,value,format,length,1);
You've given "format" and "length" in the wrong order, so it's trying
to interpret some field length as a format code.
regards, tom lane