Re: hstore or jsonb ?

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: hstore or jsonb ?
Дата
Msg-id d499297641e6707dd7fb4a10413afe02b61444f2.camel@cybertec.at
обсуждение исходный текст
Ответ на Re: hstore or jsonb ?  (Bzzzz <lazyvirus@gmx.com>)
Список pgsql-novice
On Mon, 2022-11-14 at 22:21 +0100, Bzzzz wrote:
> That depends on the query you need to support.
> > 
> > I have no idea what you mean by "fulltext accurate search" in a hstore
> > or JSON.
> 
> One kind, that will be something like :
> SELECT websearch_to_tsquery('english', 'switching power supply
> output tension 5 Vcc 5 A') ;

Indexing full text search is simple.

If the query is

  ... WHERE <someexpression> @@ <somequery>

the index is to be

  CREATE INDEX ON tab USING gin ((<someexpression>));

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com



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

Предыдущее
От: Bzzzz
Дата:
Сообщение: Re: hstore or jsonb ?
Следующее
От: hubert depesz lubaczewski
Дата:
Сообщение: Re: hstore or jsonb ?