Tree weeks later than I promised, but it is finished (I hope).
In attachment are files:dblink.cdblink.hdblink.sql.inpqtest.sql
In file pqtest.sql is sample queries and results. It seem OK to me.
There are two reasons why I did not make a diff.
1. The source I started from is 7.3b1, not the latest.
2. I would like You to check the code, especially the part that touches memory
management.
I can say that it works, but I do not know exactly why, and this can be
dangerous. With my knowledge of postgres internals this is
as far I can go at the moment. And once more sorry for bad English !
Regards !