Re: gsoc, text search selectivity and dllist enhancments - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: gsoc, text search selectivity and dllist enhancments
Date
Msg-id 20080714050120.GB21994@alvh.no-ip.org
Whole thread Raw
In response to Re: gsoc, text search selectivity and dllist enhancments  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: gsoc, text search selectivity and dllist enhancments  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> Alvaro Herrera <alvherre@commandprompt.com> writes:
> > Should we have a CHECK_FOR_INTERRUPTS() call in the inner loop of
> > compute_tsvector_stats?
> 
> Isn't the vacuum_delay_point() good enough?

But that's in the outer loop ... I mean here:

Index: src/backend/tsearch/ts_typanalyze.c
===================================================================
RCS file: /home/alvherre/Code/cvs/pgsql/src/backend/tsearch/ts_typanalyze.c,v
retrieving revision 1.1
diff -c -p -r1.1 ts_typanalyze.c
*** src/backend/tsearch/ts_typanalyze.c    14 Jul 2008 00:51:45 -0000    1.1
--- src/backend/tsearch/ts_typanalyze.c    14 Jul 2008 04:59:59 -0000
*************** compute_tsvector_stats(VacAttrStats *sta
*** 206,211 ****
--- 206,213 ----         {             bool            found; 
+             CHECK_FOR_INTERRUPTS();
+              /* Construct a hash key */             hash_key.lexeme = lexemesptr + curentryptr->pos;
hash_key.length= curentryptr->len;
 

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: gsoc, text search selectivity and dllist enhancments
Next
From: Tom Lane
Date:
Subject: Re: gsoc, text search selectivity and dllist enhancments