Re: tsvector not giving expected results on one host

2022-12-21 Thread Oleg Bartunov
I On Wed, Dec 21, 2022 at 1:12 PM Oleg Bartunov wrote: > > Dan, > > it's always good to specify configuration name in a query to avoid > recheck, since > websearch_to_tsquery(regconfig, text) is immutable, while > websearch_to_tsquery(text) is stable. immutable f

Re: tsvector not giving expected results on one host

2022-12-21 Thread Oleg Bartunov
Dan, it's always good to specify configuration name in a query to avoid recheck, since websearch_to_tsquery(regconfig, text) is immutable, while websearch_to_tsquery(text) is stable. See the difference: [local]:5433 oleg@oleg=# explain (analyze,costs off) select title from apod where websearc

Re: Trouble matching a nested value in JSONB entries

2018-07-03 Thread Oleg Bartunov
On Wed, Jun 20, 2018 at 10:06 PM, Enrico Thierbach wrote: > Hi list, > > I have some trouble matching a value in a JSONB object against multiple > potential matches. > > Lets say, I have a table with an id, and a metadata JSONB column, which > holds data like the following > > 1 | {"group_id": 1}

Re: update field in jsonb

2017-11-24 Thread Oleg Bartunov
ta[age]= '30'; > > > > On 11/22/2017 11:27 PM, Oleg Bartunov wrote: >> >> On Thu, Nov 23, 2017 at 4:45 AM, support-tiger >> wrote: >>> >>> is there a way to update a single field in jsonb without replacing the >>> entire json docume

Re: update field in jsonb

2017-11-22 Thread Oleg Bartunov
On Thu, Nov 23, 2017 at 4:45 AM, support-tiger wrote: > is there a way to update a single field in jsonb without replacing the > entire json document - couldn't find an example > > for example > > create table test (id primary key, data jsonb); > > insert into test ({"name":"bill", "age":29}); > >