pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #14054: "create index using gist ..." on large table never completes.
4+ messages / 4 participants
[nested] [flat]

* BUG #14054: "create index using gist ..." on large table never completes.
@ 2016-03-30 08:38 tsingle@muddypaddock.com
  2016-04-05 07:18 ` Re: BUG #14054: "create index using gist ..." on large table never completes. Emre Hasegeli <emre@hasegeli.com>
  2016-04-07 02:21 ` Re: BUG #14054: "create index using gist ..." on large table never completes. Jeff Janes <jeff.janes@gmail.com>
  0 siblings, 2 replies; 4+ messages in thread

From: tsingle@muddypaddock.com @ 2016-03-30 08:38 UTC (permalink / raw)
  To: pgsql-bugs

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.

The command that never completes is:

create index on mock using gist (handle,(int4range(lowest,highest,'[]')));



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



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: BUG #14054: "create index using gist ..." on large table never completes.
  2016-03-30 08:38 BUG #14054: "create index using gist ..." on large table never completes. tsingle@muddypaddock.com
@ 2016-04-05 07:18 ` Emre Hasegeli <emre@hasegeli.com>
  1 sibling, 0 replies; 4+ messages in thread

From: Emre Hasegeli @ 2016-04-05 07:18 UTC (permalink / raw)
  To: tsingle@muddypaddock.com; +Cc: pgsql-bugs

> 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.

It finished in an hour on my laptop for serially generated 100 million
rows.  I guess the regression is caused by too many overlapping
values.  GiST doesn't tend to perform well in this case.  I would give
SP-GiST a try.


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



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: BUG #14054: "create index using gist ..." on large table never completes.
  2016-03-30 08:38 BUG #14054: "create index using gist ..." on large table never completes. tsingle@muddypaddock.com
@ 2016-04-07 02:21 ` Jeff Janes <jeff.janes@gmail.com>
  2016-04-07 11:15   ` Re: BUG #14054: "create index using gist ..." on large table never completes. Tim Singletary <tsingle@muddypaddock.com>
  1 sibling, 1 reply; 4+ messages in thread

From: Jeff Janes @ 2016-04-07 02:21 UTC (permalink / raw)
  To: tsingle@muddypaddock.com; +Cc: pgsql-bugs

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



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: BUG #14054: "create index using gist ..." on large table never completes.
  2016-03-30 08:38 BUG #14054: "create index using gist ..." on large table never completes. tsingle@muddypaddock.com
  2016-04-07 02:21 ` Re: BUG #14054: "create index using gist ..." on large table never completes. Jeff Janes <jeff.janes@gmail.com>
@ 2016-04-07 11:15   ` Tim Singletary <tsingle@muddypaddock.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Tim Singletary @ 2016-04-07 11:15 UTC (permalink / raw)
  To: Jeff Janes <jeff.janes@gmail.com>; +Cc: Tim Singletary <tsingle@muddypaddock.com>; pgsql-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



^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2016-04-07 11:15 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-03-30 08:38 BUG #14054: "create index using gist ..." on large table never completes. tsingle@muddypaddock.com
2016-04-05 07:18 ` Emre Hasegeli <emre@hasegeli.com>
2016-04-07 02:21 ` Jeff Janes <jeff.janes@gmail.com>
2016-04-07 11:15   ` Tim Singletary <tsingle@muddypaddock.com>

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