Re: hstore or jsonb ?

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: Bzzzz <lazyvirus(at)gmx(dot)com>, pgsql-novice(at)lists(dot)postgresql(dot)org
Subject: Re: hstore or jsonb ?
Date: 2022-11-15 07:05:31
Message-ID: d499297641e6707dd7fb4a10413afe02b61444f2.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message hubert depesz lubaczewski 2022-11-15 08:39:46 Re: hstore or jsonb ?
Previous Message Bzzzz 2022-11-14 21:40:51 Re: hstore or jsonb ?