Re: Empty string in lexeme for tsvector

From: Artur Zakirov <zaartur(at)gmail(dot)com>
To: Jean-Christophe Arnu <jcarnu(at)gmail(dot)com>
Cc: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Empty string in lexeme for tsvector
Date: 2021-09-26 13:54:57
Message-ID: CAKNkYnyTcWsDdkmvXhgF-sZYJie3Bqr+DKQpRBtzmAur2k9i_Q@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Sep 24, 2021 at 2:39 PM Jean-Christophe Arnu <jcarnu(at)gmail(dot)com> wrote:
> Here's a new patch file taking your comments into account.

Nice catch! The patch looks good to me.
Can you also add a more general test case:

=# SELECT $$'' '1' '2'$$::tsvector;
ERROR: syntax error in tsvector: "'' '1' '2'"
LINE 1: SELECT $$'' '1' '2'$$::tsvector;

--
Artur

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Justin Pryzby 2021-09-26 17:01:17 Re: typos (and more)
Previous Message Tomas Vondra 2021-09-26 11:33:09 Re: extended stats on partitioned tables