Re: Example not producing shown output

Поиск
Список
Период
Сортировка
От Daniel Gustafsson
Тема Re: Example not producing shown output
Дата
Msg-id 21BF1412-3E64-4F10-8F8E-74AD0EC3AAC3@yesql.se
обсуждение исходный текст
Ответ на Example not producing shown output  (PG Doc comments form <noreply@postgresql.org>)
Ответы Re: Example not producing shown output  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-docs
> On 25 Nov 2019, at 13:05, PG Doc comments form <noreply@postgresql.org> wrote:
>
> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/12/functions-textsearch.html
> Description:
>
> Page: https://www.postgresql.org/docs/12/functions-textsearch.html
>
> Examples should have specified 'english'.
>
> Instead:
>   to_tsvector('fat cats ate rats') @@ to_tsquery('cat & rat')
>
> which returns fale on my own blank installation of Postgre (Serbian locale
> Windows OS) instead of true:
>   to_tsvector('english', 'fat cats ate rats') @@ to_tsquery('cat & rat')


I agree with this complaint, mainly since other examples on the page do specify
english where required AFAICT, this makes it consistent.  The attached diff
adds the english configuration directive to @@ and @@@.

The examples on chapter 12.1 all have the same issue, but adding 'english' to
all of them in order to make them work out of the box everywhere doesn't seem
like an improvement to the docs so those are left as is.

cheers ./daniel



Вложения

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

Предыдущее
От: Euler Taveira
Дата:
Сообщение: Re: Add for ALTER TEXT SEARCH CONFIGURATION
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Add for ALTER TEXT SEARCH CONFIGURATION