Re: GiST or GIN, I feel like I am doing something wrong - Mailing list pgsql-general

From Aaron
Subject Re: GiST or GIN, I feel like I am doing something wrong
Date
Msg-id 13e03a2b0906171016i3ed36ca0r4db4ca27ec10f712@mail.gmail.com
Whole thread Raw
In response to Re: GiST or GIN, I feel like I am doing something wrong  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Tom,

Our maintenance_work_mem is 1024MB so there should have been plenty of
memory for INDEX creation.  I happened to be watching top when we
created the GiN INDEX and the process used about 500MB of non-shared
memory.

Aaron Thul
http://www.chasingnuts.com



On Wed, Jun 17, 2009 at 11:30 AM, Tom Lane<tgl@sss.pgh.pa.us> wrote:
> Aaron <aaron@chasingnuts.com> writes:
>> CREATE INDEX profile_images_fulltext_gin ON profile_images_fulltext
>> USING gin(content);
>> CREATE INDEX profile_images_fulltext_gist ON profile_images_fulltext
>> USING gist(content);
>
> What did you have maintenance_work_mem set to while you did this?
> GIST doesn't care, but GIN likes to have lots of workspace while
> building an index.  I'm not entirely sure if small workspace only
> affects build time, or if it could result in a bloated/inefficient
> index ... but if the latter is true it might explain your results.
>
>                        regards, tom lane
>

pgsql-general by date:

Previous
From: Whit Armstrong
Date:
Subject: Re: how to cancel a query in progress
Next
From: Konstantin Izmailov
Date:
Subject: issue with lo_lseek - it returns 4