Here is the lastest pgparam patch. It is patched against a fresh
checkout on 2007-12-05.
This release adds support for printf-style param puts/execs. Instead of
having to do a PQputX for each param, you can use a format string and
put multiple params. PQputf(), PQparamExecf() and PQparamSendf()
support this. See release notes and conversion specifiers for details.
Also changed PQputint8's prototype. Previously, it was using a void* as
the value argument, due to a lack of a portable 64-bit type in libpq.
We found an intersting way around this by using macro and variable
argument tricks.
Andrew & Merlin