Re: Ad-hoc table type?

Поиск
Список
Период
Сортировка
От David E. Wheeler
Тема Re: Ad-hoc table type?
Дата
Msg-id E50E3E37-9117-451F-A8B3-D0EB425F2E3E@kineticode.com
обсуждение исходный текст
Ответ на Re: Ad-hoc table type?  (tomas@tuxteam.de)
Список pgsql-hackers
On Sep 28, 2008, at 23:46, tomas@tuxteam.de wrote:

>> I'm not sure what that means. Can you create normal btree or hash
>> indexes
>> on hstore columns? And is the index useful for both `@>` and `?`?
>
> That means that those operations are supported by a GiST (or GIN)
> index,
> that is:
>
>  "find the records where col contains 'foo => 1, bar => 2'"
>
> is supported by the index. Likewise for "is contained in" and "has
> key".
> It's a bit like having mini-indexes on all keys (although I guess not
> that efficient). Pretty cool, I'd say.

Yeah, that does sound good. I look forward to having an excuse for
playing with this type…

Best,

David



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: CTE patch versus UNION type determination rules
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Fatal Errors