Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mp09c-00076N-J4 for pgsql-docs@arkaria.postgresql.org; Mon, 22 Nov 2021 03:38:04 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mp09b-0006TF-HN for pgsql-docs@arkaria.postgresql.org; Mon, 22 Nov 2021 03:38:03 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mp09b-0006T5-7M for pgsql-docs@lists.postgresql.org; Mon, 22 Nov 2021 03:38:03 +0000 Received: from mail-wr1-x435.google.com ([2a00:1450:4864:20::435]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mp09W-00044w-K7 for pgsql-docs@lists.postgresql.org; Mon, 22 Nov 2021 03:38:02 +0000 Received: by mail-wr1-x435.google.com with SMTP id w29so29991638wra.12 for ; Sun, 21 Nov 2021 19:37:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=LyqDiRkJLqMGbK20o4FJk8paelyBE/7/QdD6nZvEh+g=; b=GHj5U3f8nB9k7lJb3GNlyLeDcvxScj+gCVwNWorS/Sa+5rgycB4uNPOhER9YWcZnED yi9/3/EHhmvs9MKUhqov3ZM6biXuOU6gVRv2YoT7zFB9UPVl420ywTSxjPqCaTcYnqhn IHW0u1kxjCba/cgH+ssy3NOAaJfP267tr+t7CgqH9CfkWkEySa6sOFfLvgcKoHclZm5v L2nBtNAvsjL1bXj/gGp9oyWhGOgDeI1xvTDCobQ9XbsOCcDeIHfOXQebk2UPfQpmaHYO 83d7TLq0SyyRm/ggZAiiLfZnQquXV+iu9RDt1PJLAGI+VMdHEJyrMTI19W18C8xRL+qF RGqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=LyqDiRkJLqMGbK20o4FJk8paelyBE/7/QdD6nZvEh+g=; b=10DDvA8s1PcYhq+B4g0iVFO6Rut+9GPxSToOR41+Z0Yh1vynzqQO/mzcIyNKcaCmi/ Kg/px0DVhm7AeWoC57WqXaM6dhxxNcvz+GlFJtNORYrpHXTDI5HoFnOrSuYeV8jzgI0P o87IOWesywURnlews92ZGg5+eFyPUJpqu6zykqsJPnvhVgrBuO1MQPZ+diWz0UQvuaSB paF2lD9mfMw6EYA0E12WYtRcvxNvbyLG+KR1ZGU5j24ngRfV4KAFKJwtJu22h0VP3/BL a6ab6ZlqtB4hbD2Nd6LbGLEj7fyolVC4ckhbm0K/77dDdjbxeVxLVDciWhyR7e4VFHQk nQnA== X-Gm-Message-State: AOAM531jIs/GFQiWcewqwFxKqLWIFu3F/U8F3BahalQ3RzmL1nkpcpxC xqDaqjapftA+ZYiZ76g+f9/VlA== X-Google-Smtp-Source: ABdhPJyfFguWQBQcYPdC/7Fo/c/wU9ryevdMNoK41KYDDumdzTvkuh4l2RJVf46yjHXOm0fWtgJOtQ== X-Received: by 2002:a5d:658c:: with SMTP id q12mr33828285wru.34.1637552276244; Sun, 21 Nov 2021 19:37:56 -0800 (PST) Received: from localhost.localdomain (62-47-149-33.adsl.highway.telekom.at. [62.47.149.33]) by smtp.gmail.com with ESMTPSA id x4sm19614113wmi.3.2021.11.21.19.37.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Nov 2021 19:37:55 -0800 (PST) Message-ID: Subject: Re: Explicit or implicit? From: Laurenz Albe To: Tom Lane , tristan.chambers@gmail.com Cc: pgsql-docs@lists.postgresql.org Date: Mon, 22 Nov 2021 04:37:55 +0100 In-Reply-To: <3468877.1637517048@sss.pgh.pa.us> References: <163742474559.26193.12547875443867026853@wrigleys.postgresql.org> <3468877.1637517048@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-2.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sun, 2021-11-21 at 12:50 -0500, Tom Lane wrote: > PG Doc comments form 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