pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tim Singletary <tsingle@muddypaddock.com>
To: Jeff Janes <jeff.janes@gmail.com>
Cc: Tim Singletary <tsingle@muddypaddock.com>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #14054: "create index using gist ..." on large table never completes.
Date: Thu, 7 Apr 2016 07:15:47 -0400
Message-ID: <045E8FF4-97EA-4D98-AA70-C0784874643F@muddypaddock.com> (raw)
In-Reply-To: <CAMkU=1xnnJtCpj5WGka_Omz=FFnWJEYkJjkVgBoOKN7ivZpWjQ@mail.gmail.com>
References: <20160330083819.8934.34370@wrigleys.postgresql.org>
	<CAMkU=1xnnJtCpj5WGka_Omz=FFnWJEYkJjkVgBoOKN7ivZpWjQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

My data generator is at https://github.com/flightlesson/mockdata.git

Here’s how I load 100 million rows:

      createdb mockdb
      mockdatagenerator --create-table --nrows 100000000 | psql mockdb

After loading the data

      CREATE INDEX ON mock USING gist (handle,(int4range(range_low,range_high,’[]')));

seems to take forever.

Thanks,

tim

> On Apr 6, 2016, at 10:21 PM, Jeff Janes <jeff.janes@gmail.com> wrote:
> 
> On Wed, Mar 30, 2016 at 1:38 AM,  <tsingle@muddypaddock.com> wrote:
>> The following bug has been logged on the website:
>> 
>> Bug reference:      14054
>> Logged by:          Tim Singletary
>> Email address:      tsingle@muddypaddock.com
>> PostgreSQL version: 9.5.1
>> Operating system:   osx 10.11.4
>> Description:
>> 
>> "create index using gist ..." ran for over three days on 100 million row
>> table; completes within a couple hours on a 10 million row table.
>> 
>> Had previously tried same experiment with 9.2.3 on a Linux box where the 100
>> million row table's index built within 5 hours.
>> 
>> The table looks like
>> 
>>        CREATE TABLE mock (
>>            handle INT NOT NULL
>>            ,lowest INT NOT NULL
>>            ,highest INT NOT NULL
>>            ,stuff TEXT
>>        );
>> 
>> Data was randomly generated.
> 
> "Randomly generated" covers a lot of territory and is not sufficient
> to be reproducible.  Please provide the random generator.
> 
> Thanks,
> 
> Jeff



-- 
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 (4+ messages)

Message-ID: <045E8FF4-97EA-4D98-AA70-C0784874643F@muddypaddock.com>
Permalink:  ../045E8FF4-97EA-4D98-AA70-C0784874643F@muddypaddock.com/
Also on:    postgresql.org/message-id/045E8FF4-97EA-4D98-AA70-C0784874643F@muddypaddock.com

 · 

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: tsingle@muddypaddock.com, jeff.janes@gmail.com
  Subject: Re: BUG #14054: "create index using gist ..." on large table never completes.
  In-Reply-To: <045E8FF4-97EA-4D98-AA70-C0784874643F@muddypaddock.com>
  References: <20160330083819.8934.34370@wrigleys.postgresql.org> <CAMkU=1xnnJtCpj5WGka_Omz=FFnWJEYkJjkVgBoOKN7ivZpWjQ@mail.gmail.com> <045E8FF4-97EA-4D98-AA70-C0784874643F@muddypaddock.com>

* 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