Re: WIP: RangeTypes

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: WIP: RangeTypes
Дата
Msg-id 1296328237.11513.522.camel@jdavis
обсуждение исходный текст
Ответ на Re: WIP: RangeTypes  ("David E. Wheeler" <david@kineticode.com>)
Список pgsql-hackers
On Sat, 2011-01-29 at 11:00 -0800, David E. Wheeler wrote:
> I think I'm just revealing my ignorance of these index types and what
> they're good for. My impression has been that GIN was a better but
> less-full-featured alternative to GiST and getting better with Tom's
> recent fixes for its handling of NULLs. But, uh, obviously not.

The idea of GIN is that you store multiple entries for each tuple you
insert. So, inserting a tuple containing the document 'hello world'
would store the keys "hello" and "world" both pointing back to that
tuple. It also makes sense for arrays.

But ranges are arbitrarily long, and don't have any defined "step", so
that means an infinite number of keys. GiST works better for that.

Regards,Jeff Davis



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

Предыдущее
От: Magnus Hagander
Дата:
Сообщение: Re: Snapshots no longer build
Следующее
От: Tom Lane
Дата:
Сообщение: Re: SPI_exec doesn't return proc context (on 9.1)