once more, because message was too long:
see attached files. patches are based on postgresql-jdbc-8.0-311.src.tar.gz.sorry for using this way, I have still no experience with cvs.