Attached is a patch which fixes a memory leak in tuplestore_end(). Barring any objections, I'll apply this to HEAD and back branches tomorrow. -Neil
pgsql-patches by date:
Соглашаюсь с условиями обработки персональных данных