Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w9W72-001V4H-2I for pgsql-docs@arkaria.postgresql.org; Sun, 05 Apr 2026 22:38:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w9W6z-005FWy-2V for pgsql-docs@arkaria.postgresql.org; Sun, 05 Apr 2026 22:38:34 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w9W6z-005FWo-1M for pgsql-docs@lists.postgresql.org; Sun, 05 Apr 2026 22:38:33 +0000 Received: from mail-ed1-x532.google.com ([2a00:1450:4864:20::532]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w9W6x-00000000ksR-2Vtp for pgsql-docs@lists.postgresql.org; Sun, 05 Apr 2026 22:38:32 +0000 Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-66c17372965so6314810a12.1 for ; Sun, 05 Apr 2026 15:38:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1775428709; cv=none; d=google.com; s=arc-20240605; b=k3CZtATLZCz/IfN7dA0VFzAJ/hbkvAtb/qvk5y6W3fJRRrVYP8JVUe8UA+WJF3tDiW xf6aeWA95dr+YllgD0uWjtTGOuYArezFzQxI24K5z4BjTLu342PNiLZeTsL6XvEALH0x Fqr0UZKMAaym5oC23vssKi9P9x5/vnLFIpBSBvfpQAcE5i9l2CQleD9w4jngk4ZGRIrx djoeW9qxhFZxXaxgbCUvP/S8Z0uXJ9oFRVhTyRyHvBCdD4G4a9URPVPuSnn9yP/l+pgO cqiV+PdyE4GE1T4moLjymEUG/VFYzPVEkNPn9RED1ojZQGVno3KlsIsmq387IXnPOo0f G3Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=BhScHRsXxr1aed5QRZfO/LecW6SZtOwdxE46hVoBHfI=; fh=eitnFYqiGz5Qd9tP4ETN4LQj8BMqIm+FgmdzoPwQKYs=; b=F9OPSCPae2AKiWrXYutwlxt+dN4J3eRcoUfCzdfCxnRr11hGmJJwiO1YFZCq2sjWYg TWgQfn2BzQCOnMF3e494P4VR6TyQ11IIQ++9i/kG2lp3raPQi9nhE0wgm5PyR4k9oUUW U8ppSHgk3/FybL1vUvV7gVy+q8wIMntfCXLyMxtYCQtZvOfaxn65r2QC1Da4GeNs1rPK Q68WeC2mFA7/6AOJzAHMOXw8cACu1ohNIl66e1+3WWVTuUXlMnB5K6GFoNWbpjqnpay1 xbDWyMpFICeQZjVjlTU+etj95VK/O9JaHacyYIZpaSq8EaJ2+FCVWAk4IOvCxN3CZ1cc 0//Q==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775428709; x=1776033509; darn=lists.postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=BhScHRsXxr1aed5QRZfO/LecW6SZtOwdxE46hVoBHfI=; b=DnI7ikr8BI8PHaAE2MKsnAaagCMrnRcuW3PCLdkft2U68jKNB601rdPCV0+lfy4lP4 der4yDUdzNzrE218treQRy01dp2DSDliP+MaGw0sySBe2ePDltxwndErWgKtEu1/p/qx Ng9dDCoWn9qR3PalQX06wz90uKTZJmDb88MH8K7bqF81xZvdd+6iCl/5SMxglpEHgJF1 /CGKSVkkGtV+6gILk8s6RjfX+lpUwlv8cRid0Xl7iTeeRGxOMNzTiGjOwCzhGhGvGZUK 3ZTJ3JUi54Iy62yt0K6whmYObaW2NNlR2mZjM2ttcAdmEuYlLvfS/dW2UWhhwDZyYj0F WJ6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775428709; x=1776033509; h=to:subject:message-id:date:from:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=BhScHRsXxr1aed5QRZfO/LecW6SZtOwdxE46hVoBHfI=; b=OJq1RWezxtvhP/mi4ODwwSTMWWxSUODf8zpgKF3stkwDcSRSFohbdCRS+k/XYi/KCL nH1X8HVd/ZBacJSfNrAOXwEVpW4Gt5OkpyW/AJ48tB5ISL73AHTP7e+mh7XqkLnRcYcZ 6zI0ooErc/fumYG3SdoyRO93o6LhLWsPykcReTBqeKPcnTzMquJ0gJcur1bkuHM2A7Dg i6BKS5Q5DlfWAe5AgxFlue+yW2nLh3drQK7+rBe3vKkPDcp0siGUXejJFIV6ThpW4tET Fdob1G03WPQUd4lf/DuuRbhL61rRXerjCRUutoiIBOTAamQ+Q/7F6wDiL3RsHfZ7VNGg Bmaw== X-Gm-Message-State: AOJu0YxdhaIatMtKEamE/l/6quGnlFn3oxEsbCxI3706aVdij1zS0NPY bWYe+rYosFtE4c2GamqesHxIKstpIq7a2a4QIBfOYrNmoNgEb3T5rH5hJfgPP44uJyFs4iHa+Lz oRXCJAoqFUlHRkecgWhvVaCUMCtXbwUVJNyVE X-Gm-Gg: AeBDiet0t1r+uC+4K9cU9ZNn8VeQorXTyCcZ98YxafaksQZ5KzSRjjNuTL39z9SpP84 XHLx9UYNT/67QHUdBITyF1O8P24Q4drW3Q1hMpXNTeuHT3n/PMNrousMBPwMENYdFYWrdjFON1z iRQ0c9z/wiTSj4nkg7r7NK2R5SW9L1/jVjgOzYi7HNYyw3FbPZedDag+WV1vdrQ8SvD4qDpll3K PxupcqZDW0PwS8hJdYKA1hhgUYHysdyKlKNLBJApCo9YHcVWaDA9u4zjzA0V3LYFa9rluD5vXym t/h86Jfp X-Received: by 2002:a05:6402:2088:b0:66d:ce0a:2589 with SMTP id 4fb4d7f45d1cf-66e3f709c6fmr3995142a12.18.1775428708461; Sun, 05 Apr 2026 15:38:28 -0700 (PDT) MIME-Version: 1.0 From: Yousef Mohamed Date: Mon, 6 Apr 2026 00:38:17 +0200 X-Gm-Features: AQROBzBeMH6O51EG2nF4V2VidZkpKFLEYPolmalRQfDPDHpva0q6yNg0YOxJMic Message-ID: Subject: issue in the doc To: pgsql-docs@lists.postgresql.org Content-Type: multipart/alternative; boundary="0000000000007def8b064ebe3507" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000007def8b064ebe3507 Content-Type: text/plain; charset="UTF-8" Page: https://www.postgresql.org/docs/current/textsearch-intro.html The documentation says: tsvector @@ tsquery tsquery @@ tsvector text @@ tsquery text @@ text The first two of these we saw already. The form text @@ tsquery is equivalent to to_tsvector(x) @@ y. The form text @@ text is equivalent to to_tsvector(x) @@ plainto_tsquery(y). Question: In the expression: to_tsvector(x) @@ plainto_tsquery(y) what do x and y refer to exactly? are they correspond to the left-hand and right-hand sides of the original expression (text @@ text) ? if yes , i think it's better to mention the order of the x and y like : (x @@ y ) or ( y @@ x) thanks --0000000000007def8b064ebe3507 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Page:
https://www.postgresql.o= rg/docs/current/textsearch-intro.html

The documentation says:

tsvector @@ tsquery
tsquery  @@ tsvector
text @@ tsquery
text @@ text

The first two of these we saw already. The form=C2=A0text=C2=A0@@=C2=A0tsquery=C2=A0is equival= ent to=C2=A0to_tsvector(x) @@ y. The= form=C2=A0text=C2=A0@@=C2=A0text=C2=A0= is equivalent to=C2=A0to_tsvector(x) @@ pla= into_tsquery(y).


Question:

I= n the expression:
to_tsvector(x) @@ plainto_tsquery(y)

what do x = and y refer to exactly?

are they correspond to the left-hand and rig= ht-hand sides of the original expression (text @@ text) ?=C2=A0

if yes , i think it's better to mention the order of = the x and y like : (x=C2=A0@@ y ) or ( y @@ x)=C2=A0

thanks=C2=A0

--0000000000007def8b064ebe3507--