Re: Explicit or implicit?

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: Explicit or implicit?
Дата
Msg-id a53b97bab996b7b12ed31d21184efdd91abe9f64.camel@cybertec.at
обсуждение исходный текст
Ответ на Re: Explicit or implicit?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-docs
On Sun, 2021-11-21 at 12:50 -0500, Tom Lane wrote:
> PG Doc comments form <noreply@postgresql.org> writes:
> > "The @@ operator also supports text input, allowing explicit conversion of a
> > text string to tsvector or tsquery to be skipped in simple cases."I believe
> > that the text is saying implicit, but uses the word "explicit" instead. Is
> > this a typo? Thanks.
> 
> I think it's intended.  The point is that instead of, say,
> 
>         tsvector_column @@ 'query here'::tsquery
> 
> you could just write
> 
>         tsvector_column @@ 'query here'

Right.  You can skip the explicit conversion of adding a type cast.

Yours,
Laurenz Albe




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Explicit or implicit?
Следующее
От: PG Doc comments form
Дата:
Сообщение: Triggers on underlying tables of updatable views