Hi,
Attached fix for "master" branch.
-- With best regards,Dmitry Koval
Postgres Professional: http://postgrespro.com