Re: new function for tsquery creartion

Поиск
Список
Период
Сортировка
От Aleksander Alekseev
Тема Re: new function for tsquery creartion
Дата
Msg-id 20180328092115.GA32581@e733.localdomain
обсуждение исходный текст
Ответ на Re: new function for tsquery creartion  (Dmitry Ivanov <d.ivanov@postgrespro.ru>)
Ответы Re: new function for tsquery creartion  (Aleksandr Parfenov <a.parfenov@postgrespro.ru>)
Список pgsql-hackers
Hello Dmitry,

> A few gotchas:
>
> I haven't touched gettoken_tsvector() yet. As a result, the following
> queries produce errors:
>
> select websearch_to_tsquery('simple', '''');
> ERROR:  syntax error in tsquery: "'"
>
> select websearch_to_tsquery('simple', '\');
> ERROR:  there is no escaped character: "\"
>
> Maybe there's more. The question is: should we fix those, or it's fine as it
> is? I don't have a strong opinion about this.

It doesn't sound right to me to accept any input as a general rule but
sometimes return errors nevertheless. That API would be complicated for
the users. Thus I suggest to accept any garbage and try our best to
interpret it.

--
Best regards,
Aleksander Alekseev

Вложения

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

Предыдущее
От: Tatsuo Ishii
Дата:
Сообщение: Re: Proposal: http2 wire format
Следующее
От: Amit Langote
Дата:
Сообщение: Re: [HACKERS] path toward faster partition pruning