I have applied the attached patch to HEAD in order to fix the problemsdiscussed in this thread:http://archives.postgresql.org/pgsql-hackers/2004-12/msg00187.php
regards, tom lane