Re: Indexing large table of coordinates with GiST

From: Andy Colson <andy(at)squeakycode(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Indexing large table of coordinates with GiST
Date: 2015-01-15 14:45:12
Message-ID: 54B7D278.8020406@squeakycode.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 1/15/2015 6:44 AM, Daniel Begin wrote:
> Hi, I'm trying to create an index on coordinates (geography type) over a
> large table (4.5 billion records) using GiST...
>
> CREATE INDEX nodes_geom_idx ON nodes USING gist (geom);
>
> The command ran for 5 days until my computer stops because a power outage!
> Before restarting the index creation, I am asking the community if there are
> ways to shorten the time it took the first time :-)
>
> Any idea?
>
> Daniel
>
>
>

Set maintenance_work_mem as large as you can.

-Andy

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2015-01-15 14:46:08 Re: can you have any idea about toast missing chunk issu resolution
Previous Message Vick Khera 2015-01-15 14:04:23 Re: Indexing large table of coordinates with GiST