Re: BUG #14722: Segfault in tuplesort_heap_siftup, 32 bit overflow
Peter Geoghegan <pg@bowt.ie>
From: Peter Geoghegan <pg@bowt.ie>
To: Sergey Koposov <skoposov@cmu.edu>
Cc: PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Date: 2017-06-29T18:59:12Z
Lists: pgsql-bugs
On Thu, Jun 29, 2017 at 9:16 AM, <skoposov@cmu.edu> wrote: > Here are the commands leading to the crash: > > wsdb=# set maintenance_work_mem to '70GB'; > > SET > wsdb=# create index on cgonzal.vvv_single_ks_sorted (q3c_ang2ipix(ra,dec)); > > > ---- > > Importantly the table has already been sorted by q3c_ang2ipix(ra,dec) ! BTW, given the exact details of what you're doing here, using only 1MB of maintenance_work_mem will probably make the operation complete sooner. -- Peter Geoghegan
Commits
-
Avoid integer overflow while sifting-up a heap in tuplesort.c.
- e439bbe9996f 9.4.13 landed
- e7213fe2bda8 9.5.8 landed
- 512f67c8d02c 10.0 landed
- 09c598898166 9.6.4 landed
-
Implement binary heap replace-top operation in a smarter way.
- 24598337c8d2 10.0 cited
-
Permit super-MaxAllocSize allocations with MemoryContextAllocHuge().
- 263865a48973 9.4.0 cited