Re: hstore or jsonb ? - Mailing list pgsql-novice

From Laurenz Albe
Subject Re: hstore or jsonb ?
Date
Msg-id d499297641e6707dd7fb4a10413afe02b61444f2.camel@cybertec.at
Whole thread Raw
In response to Re: hstore or jsonb ?  (Bzzzz <lazyvirus@gmx.com>)
List 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 by date:

Previous
From: Bzzzz
Date:
Subject: Re: hstore or jsonb ?
Next
From: hubert depesz lubaczewski
Date:
Subject: Re: hstore or jsonb ?