Next version of the patch.For searching any problems I forced this patch during 'make check' tests. Some bugs were found and fixed.
-- regards,Andrey LepikhovPostgres Professional