Haribabu Kommi <kommi.haribabu@gmail.com> writes:
> Is the attached patch is in the right direction to the handle the problem?
Pretty close. Now that we've done this, we can get rid of a lot of the
retail pfree's since the memory context deletions will take care of it.
I cleaned that up a bit more and committed it.
regards, tom lane