Current GTM communication protocol is using a 8.4-clone of libpq, like its memory management and other things.
Its maintenance is a useless bargain, as it uses exactly the same APIs as postgres core.
It should be a plug in on top of libpq facilitating maintenance and bug fix.
Need preliminary study to determine how much work to be done. Should continue to use current GTM memory management and pthread locks.