Robert Haas <robertmhaas(at)gmail(dot)com> writes:> But that leads me to a question - does the existing HashAggregate code> make any attempt to obey work_mem?
No.
regards, tom lane