Yiqing Jin <yiqing(dot)jin(at)gmail(dot)com> writes:
> maintenance_work_mem = 128000MB
Just a thought ... does the crash go away if you reduce that to something
like 50GB? It suddenly strikes me that qsort_tuple is not being careful
about size_t being wider than int.
regards, tom lane