Re: gsoc, text search selectivity and dllist enhancments

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: gsoc, text search selectivity and dllist enhancments
Дата
Msg-id 486DD210.9030400@enterprisedb.com
обсуждение исходный текст
Ответ на Re: gsoc, text search selectivity and dllist enhancments  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: gsoc, text search selectivity and dllist enhancments  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> The data structure I'd suggest is a simple array of pointers
> to the underlying hash table entries.  Since you have a predetermined
> maximum number of lexemes to track, you can just palloc the array once
> --- you don't need the expansibility properties of a list. 

The number of lexemes isn't predetermined. It's 2 * (longest tsvector 
seen so far), and we don't know beforehand how long the longest tsvector is.

repalloc()ing shouldn't be a problem, though.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Raney
Дата:
Сообщение: Re: [PATCHES] Explain XML patch v2
Следующее
От: Gregory Stark
Дата:
Сообщение: Re: the un-vacuumable table