pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Explicit or implicit?
3+ messages / 3 participants
[nested] [flat]

* Explicit or implicit?
@ 2021-11-20 16:12 PG Doc comments form <noreply@postgresql.org>
  2021-11-21 17:50 ` Re: Explicit or implicit? Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 3+ messages in thread

From: PG Doc comments form @ 2021-11-20 16:12 UTC (permalink / raw)
  To: pgsql-docs@lists.postgresql.org; +Cc: tristan.chambers@gmail.com

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/13/textsearch-intro.html
Description:

https://www.postgresql.org/docs/13/textsearch-intro.html

"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.


^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Explicit or implicit?
  2021-11-20 16:12 Explicit or implicit? PG Doc comments form <noreply@postgresql.org>
@ 2021-11-21 17:50 ` Tom Lane <tgl@sss.pgh.pa.us>
  2021-11-22 03:37   ` Re: Explicit or implicit? Laurenz Albe <laurenz.albe@cybertec.at>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2021-11-21 17:50 UTC (permalink / raw)
  To: tristan.chambers@gmail.com; +Cc: pgsql-docs@lists.postgresql.org

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'

			regards, tom lane





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Explicit or implicit?
  2021-11-20 16:12 Explicit or implicit? PG Doc comments form <noreply@postgresql.org>
  2021-11-21 17:50 ` Re: Explicit or implicit? Tom Lane <tgl@sss.pgh.pa.us>
@ 2021-11-22 03:37   ` Laurenz Albe <laurenz.albe@cybertec.at>
  0 siblings, 0 replies; 3+ messages in thread

From: Laurenz Albe @ 2021-11-22 03:37 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; tristan.chambers@gmail.com; +Cc: pgsql-docs@lists.postgresql.org

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






^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2021-11-22 03:37 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-11-20 16:12 Explicit or implicit? PG Doc comments form <noreply@postgresql.org>
2021-11-21 17:50 ` Tom Lane <tgl@sss.pgh.pa.us>
2021-11-22 03:37   ` Laurenz Albe <laurenz.albe@cybertec.at>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox