Re: Empty string in lexeme for tsvector

Поиск
Список
Период
Сортировка
От Jean-Christophe Arnu
Тема Re: Empty string in lexeme for tsvector
Дата
Msg-id CAHZmTm1MoTXXNN7yRwe+ADGPnyNS5XB2YTJyFOcCokXVKxfVjw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Empty string in lexeme for tsvector  (Jean-Christophe Arnu <jcarnu@gmail.com>)
Ответы Re: Empty string in lexeme for tsvector
Список pgsql-hackers


Le dim. 26 sept. 2021 à 22:41, Jean-Christophe Arnu <jcarnu@gmail.com> a écrit :


Le dim. 26 sept. 2021 à 15:55, Artur Zakirov <zaartur@gmail.com> a écrit :
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;


Thank you, Artur for spotting this test.
It is now included into this patch.
 


Two more things :

  * I updated the documentation for array_to_tsvector(), ts_delete() and setweight() functions (so here's a new patch);
  * I should mention François Ferry from Logilab who first reported the backup/restore problem that led to this patch.

I think this should be ok, now the doc is up to date.

Kind regards.
--
Jean-Christophe Arnu
Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Greg Nancarrow
Дата:
Сообщение: Re: Added schema level support for publication.
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: Column Filtering in Logical Replication