Le dim. 26 sept. 2021 à 22:41, Jean-Christophe Arnu <
jcarnu@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