Tatsuo Ishii <ishii(at)postgresql(dot)org> writes:
>> Could we see an actual test case?
> If you don't mind to use pgpool, it would be possible. If not, I need
> to write a small program which handles frontend/backend protocol
> directly. What shall I do?
Hm, can't you get libpq to do it?
regards, tom lane