Gaetano Mendola <mendola@bigfoot.com> writes:
> which library I have to link in order to have the symbol pg_begintypsend ?
I think you want pq_begintypsend.
Consider paying more attention to unknown-function warnings from your
compiler.
regards, tom lane