pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sergey Koposov <skoposov@cmu.edu>
To: pg@bowt.ie <pg@bowt.ie>
Cc: pgsql-bugs@postgresql.org <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14722: Segfault in tuplesort_heap_siftup, 32 bit overflow
Date: Thu, 29 Jun 2017 19:56:02 +0000
Message-ID: <1498766162.21587.98.camel@cmu.edu> (raw)
In-Reply-To: <CAH2-Wzneyg=+zVr9TJSg3sYm=XHu43Kn1zExA5kge57mNDk7MA@mail.gmail.com>
References: <20170629161637.1478.93109@wrigleys.postgresql.org>
	<CAH2-Wzneyg=+zVr9TJSg3sYm=XHu43Kn1zExA5kge57mNDk7MA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On Thu, 2017-06-29 at 11:59 -0700, Peter Geoghegan wrote:
> 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.
> 
> 

Thank you. It does seem to be ~ 50% faster. 
It is somewhat unfortunate that maintenance_work_mem is
counterproductive in this scenario, given that indexing an ordered table
is a natural step in clustering a table...  

Sergey



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


view thread (26+ messages)  latest in thread

Message-ID: <1498766162.21587.98.camel@cmu.edu>
Permalink:  ../1498766162.21587.98.camel@cmu.edu/
Also on:    postgresql.org/message-id/1498766162.21587.98.camel@cmu.edu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: skoposov@cmu.edu, pg@bowt.ie
  Subject: Re: BUG #14722: Segfault in tuplesort_heap_siftup, 32 bit overflow
  In-Reply-To: <1498766162.21587.98.camel@cmu.edu>
  References: <20170629161637.1478.93109@wrigleys.postgresql.org> <CAH2-Wzneyg=+zVr9TJSg3sYm=XHu43Kn1zExA5kge57mNDk7MA@mail.gmail.com> <1498766162.21587.98.camel@cmu.edu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox