pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Teodor Sigaev <teodor@sigaev.ru>
To: pgsql-committers@lists.postgresql.org
Subject: Re: pgsql: Add json(b)_to_tsvector function
Date: Sat, 7 Apr 2018 21:53:01 +0300
Message-ID: <6aed7303-8bfd-b1a5-1ae9-50e78749178a@sigaev.ru> (raw)
In-Reply-To: <E1f4s7L-0001yP-7l@gemulon.postgresql.org>
References: <E1f4s7L-0001yP-7l@gemulon.postgresql.org>

https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=desmoxytes&dt=2018-04-07 
18%3A32%3A02

test select_parallel              ... FAILED

I don't understand how it's connected to json_to_tsquery. Can somebody 
point me what I'm missing?

Teodor Sigaev wrote:
> Add json(b)_to_tsvector function
> 
> Jsonb has a complex nature so there isn't best-for-everything way to convert it
> to tsvector for full text search. Current to_tsvector(json(b)) suggests to
> convert only string values, but it's possible to index keys, numerics and even
> booleans value. To solve that json(b)_to_tsvector has a second required
> argument contained a list of desired types of json fields. Second argument is
> a jsonb scalar or array right now with possibility to add new options in a
> future.
> 
> Bump catalog version
> 
> Author: Dmitry Dolgov with some editorization by me
> Reviewed by: Teodor Sigaev
> Discussion: https://www.postgresql.org/message-id/CA+q6zcXJQbS1b4kJ_HeAOoOc=unfnOrUEL=KGgE32QKDww7d8g@mail.gmail...
> 
> Branch
> ------
> master
> 
> Details
> -------
> https://git.postgresql.org/pg/commitdiff/1c1791e00065f6986f9d44a78ce7c28b2d1322dd
> 
> Modified Files
> --------------
> doc/src/sgml/func.sgml              |  20 ++++
> src/backend/tsearch/to_tsany.c      | 128 ++++++++++++++++++++++----
> src/backend/utils/adt/jsonfuncs.c   | 179 ++++++++++++++++++++++++++++++++----
> src/include/catalog/catversion.h    |   2 +-
> src/include/catalog/pg_proc.h       |  24 +++--
> src/include/utils/jsonapi.h         |  21 ++++-
> src/test/regress/expected/json.out  | 122 ++++++++++++++++++++++++
> src/test/regress/expected/jsonb.out | 122 ++++++++++++++++++++++++
> src/test/regress/sql/json.sql       |  30 ++++++
> src/test/regress/sql/jsonb.sql      |  30 ++++++
> 10 files changed, 629 insertions(+), 49 deletions(-)
> 

-- 
Teodor Sigaev                      E-mail: teodor@sigaev.ru
                                       WWW: http://www.sigaev.ru/




view thread (6+ messages)  latest in thread

Message-ID: <6aed7303-8bfd-b1a5-1ae9-50e78749178a@sigaev.ru>
Permalink:  ../6aed7303-8bfd-b1a5-1ae9-50e78749178a@sigaev.ru/
Also on:    postgresql.org/message-id/6aed7303-8bfd-b1a5-1ae9-50e78749178a@sigaev.ru

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: teodor@sigaev.ru
  Subject: Re: pgsql: Add json(b)_to_tsvector function
  In-Reply-To: <6aed7303-8bfd-b1a5-1ae9-50e78749178a@sigaev.ru>
  References: <E1f4s7L-0001yP-7l@gemulon.postgresql.org> <6aed7303-8bfd-b1a5-1ae9-50e78749178a@sigaev.ru>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox