Hey Sergey,
As i can understand Vladimir, he have many clients reading bytea in one> server like this and he is trying to reduce memory consumption.>> Why not use large objects for this purpose?
-- Regards,Dmitriy