Re: Best implementation of PATRICIA

Поиск
Список
Период
Сортировка
От Steve Atkins
Тема Re: Best implementation of PATRICIA
Дата
Msg-id 4AE677D2-F5BB-4983-A807-FA8DF0794857@blighty.com
обсуждение исходный текст
Ответ на Best implementation of PATRICIA  (Alex Povolotsky <tarkhil@over.ru>)
Список pgsql-hackers
On Aug 25, 2007, at 11:37 AM, Alex Povolotsky wrote:

> Hello!
>
> I'm working on a project requiring fast query like 'does ADDRESS  
> belongs to SET OF NETWORKS?'. Naturally, such a query is better  
> implemented using PATRICIA, but building PATRICIA tree is a  
> relatively long task and is better to be done once, for instance,  
> at server startup.
>
> I'm thinking of implementing such a tree using stored procedures,  
> and looking for advise from postgresql-hackers: how can I hook  
> startup of server?
>
> Idea of having something like a blob to store and restore PATRICIA  
> tree may be better suited to standard SQL, but I'm looking for more  
> elegant solution. Or am I totally wrong?
>

Patricia is a nice algorithm, but I suspect you'd be much happier with
GIST and http://pgfoundry.org/projects/ip4r/

Cheers,  Steve



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

Предыдущее
От: Alex Povolotsky
Дата:
Сообщение: Best implementation of PATRICIA
Следующее
От: "Zeugswetter Andreas ADI SD"
Дата:
Сообщение: Re: SQL feature requests