"Jim C. Nasby" <jim@nasby.net> writes:
> It appears that after a pgsql backend uses memory for sort, it doesn't
> get released again, at least on solaris. IE:
That's true on many Unixen --- malloc'd space is never released back to
the OS until the process dies. Not much we can do about it. If you're
concerned, start a fresh session, or use another Unix (or at least a
better malloc package).
regards, tom lane