The attached patch is a revised version of the patch I sent in before:
http://archives.postgresql.org/pgsql-patches/2005-12/msg00018.php
The old version did not apply to current CVS anymore and the new one
now also works with flex 2.5.4.
The patch works as proposed by Tom Lane in:
http://archives.postgresql.org/pgsql-patches/2004-06/msg00030.php
(see lower part)
Joachim