Also, Платон Малюгин, can you add this patch to postgresql commitfest (http://commitfest.postgresql.org)?
--Ali Akbar