Andrew Hill <andru(at)treshna(dot)com> writes:
> Now this is all what behave should be, but if i insert the exact same
> code into my libary at a low level point, ie everytime i do a PQexec, i
> get the result 2729675.
I think you messed up in your code. If you doubt it, try running the
postmaster with debug level 2, and look in the postmaster log to see
what query is actually being received by the backend.
regards, tom lane