Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLW6Q-00034w-BA for pgsql-docs@arkaria.postgresql.org; Sun, 03 Dec 2017 15:22:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLW6P-0007BY-I2 for pgsql-docs@arkaria.postgresql.org; Sun, 03 Dec 2017 15:22:45 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eLW6P-0007BM-9Z for pgsql-docs@lists.postgresql.org; Sun, 03 Dec 2017 15:22:45 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eLW6F-0001TI-DL for pgsql-docs@postgresql.org; Sun, 03 Dec 2017 15:22:40 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id vB3FMXgC027324; Sun, 3 Dec 2017 10:22:33 -0500 From: Tom Lane To: barbiomalefico@gmail.com cc: pgsql-docs@postgresql.org Subject: Re: followed by example doesn't work In-reply-to: <20171203093546.27110.95117@wrigleys.postgresql.org> References: <20171203093546.27110.95117@wrigleys.postgresql.org> Comments: In-reply-to barbiomalefico@gmail.com message dated "Sun, 03 Dec 2017 09:35:46 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <27322.1512314553.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Sun, 03 Dec 2017 10:22:33 -0500 Message-ID: <27323.1512314553@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk barbiomalefico@gmail.com writes: > I copied the text in the followed by example: SELECT to_tsvector('fa= tal > error') @@ to_tsquery('fatal <-> error'); = > but it will always goes in error: ERROR: syntax error in tsquery: "= ;fatal > <-> error" > SQL state: 42601 The described symptoms sound like you're trying to use <-> with a pre-9.6 server. Since that feature was added in 9.6, it won't work. We generally don't recommend reading documentation versions that don't match your server. regards, tom lane