Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ipUSV-0002ao-D7 for pgsql-docs@arkaria.postgresql.org; Thu, 09 Jan 2020 09:50:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ipUSU-0002UW-4k for pgsql-docs@arkaria.postgresql.org; Thu, 09 Jan 2020 09:50:30 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ipUST-0002UP-PV for pgsql-docs@lists.postgresql.org; Thu, 09 Jan 2020 09:50:29 +0000 Received: from mail-lj1-x241.google.com ([2a00:1450:4864:20::241]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ipUSR-0004xq-5F for pgsql-docs@lists.postgresql.org; Thu, 09 Jan 2020 09:50:28 +0000 Received: by mail-lj1-x241.google.com with SMTP id o13so6526194ljg.4 for ; Thu, 09 Jan 2020 01:50:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hagander-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zy09a3VDnIHRMJ8Bv4hV3c852IGRUmMjTNTJZUwP+Cw=; b=b6286UZgURe5kEIdKiLt8cLHM2UW49RzwWFZ9Yovyfcz7Nv9a9flWa+Lwm7Iz7l2ss Pudw1QsXdWbCG4+fbsD+zw4xOc9aBvxb69Kbdczzzmk4wvtqwJiaQVUq59hjtskWd2UO T1BksuT5/EEjHbMtty+v/jGHWPUsx7dUi2qBcrtsDPd474Ij3iU3X3r3lJRMTKK+/Lpj T7XxOyYAQykuXTZzRgLK1gCE0xNQK7otZI4uxgBJDJGTeR8u+pt+CLnTMrwZcGCYVN/F idr+6tEpwkGBMvhRfw1AxYPsflBXaEtnOoKYDU14QUAWHmDKkmBQPt03sPR+S53sYGh/ mL/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zy09a3VDnIHRMJ8Bv4hV3c852IGRUmMjTNTJZUwP+Cw=; b=k5CYewvTSHevL07jxgBOVr8M2bMXlo5pAf9P1Wb8HYBsgPC12ifjmQDzwEk+hQXAe3 XSJbXAo543cho8/I9QFrWd2F7C0cHBzL+RFl70vObB8Zv9EKGNOEA3Xu7Fg3jyp8wOdH 5BYsMKmlJscTjWdeDxmyvpqwNF75kpS75/MjIkKilKrna8N41v5wgjTO6ZdZ5cMGJv1+ X51fZPH9gNJ5K2YHQTj+4iSzTmXdTY+6cAOQxDLyO182Zh5pkJBka1qkDYkG/vz4zP/W oCOSiy0jA51gcN8LMgzb7Wg6Z2OsF+HPw8T7yV4Z9VwvUDR4LPyEMCqtjBdQc4LubceS TjTw== X-Gm-Message-State: APjAAAVU8M0ma2cUHiyo2fOeInL87sd2tglMJ6ohvvxCQ9QN0NKuIZ/b YiR+UXyyoibexARrclsA1m8nhdrg90/mZpUZuOOYwQ== X-Google-Smtp-Source: APXvYqzQlosppTqbEMJPeNXu8gBvf5uMP++AHaPPRFliPCf+458X30eXxw0Cj2eIFkRR/PRnnHO8yiknez5ROM2x4IM= X-Received: by 2002:a2e:7009:: with SMTP id l9mr5997226ljc.96.1578563425737; Thu, 09 Jan 2020 01:50:25 -0800 (PST) MIME-Version: 1.0 References: <157855848580.29169.11958103978637887119@wrigleys.postgresql.org> <6E6064A4-D57B-4DF0-A0BF-4DFA745ACD47@yesql.se> In-Reply-To: <6E6064A4-D57B-4DF0-A0BF-4DFA745ACD47@yesql.se> From: Magnus Hagander Date: Thu, 9 Jan 2020 10:50:14 +0100 Message-ID: Subject: Re: Suggestion on Document for Version 12 Section 40.3 To: Daniel Gustafsson Cc: zhangysh1995@gmail.com, Pg Docs Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Thu, Jan 9, 2020 at 10:42 AM Daniel Gustafsson wrote: > > > On 9 Jan 2020, at 09:28, PG Doc comments form wrote: > > > > The following documentation comment has been logged on the website: > > > > Page: https://www.postgresql.org/docs/12/rules-materializedviews.html > > Description: > > > > Hello all, > > > > > > I'm reading Section 40.3, and there is an example (the third square by > > reverse order): > > > > > > SELECT word FROM words ORDER BY word <-> 'caterpiler' LIMIT 10; > > > > word > > --------------- > > cater > > caterpillar > > Caterpillar > > caterpillars > > caterpillar's > > Caterpillar's > > caterer > > caterer's > > caters > > catered > > (10 rows) > > > > > > As shown here https://www.postgresql.org/docs/current/pgtrgm.html, the > > operator `<->` is in an additional module. Without the context, the reader > > will need searching to help understand the meaning. It would be better if > > further reference is given. > > I agree that this could lead to unnecessary confusion for readers, and since we > are already mentioning that file_fdw is used it seems reasonable to also > mention pg_trgm. A suggested patch is attached. Seems correct. Pushed, thanks! //Magnus