Amit Langote <amitlangote09@gmail.com> writes:
> Okay, aside from that case, what else would move those to the main
> structure? They (the entries in the unsorted pending list) are in the
> local memory (work_mem?) of the backend, right?
No. If they were, it wouldn't be crash-safe.
regards, tom lane