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 1gldPl-00071Z-BN for pgsql-bugs@arkaria.postgresql.org; Mon, 21 Jan 2019 17:31:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gldPj-0000ns-IA for pgsql-bugs@arkaria.postgresql.org; Mon, 21 Jan 2019 17:31:11 +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 1gldPj-0000nf-5P for pgsql-bugs@lists.postgresql.org; Mon, 21 Jan 2019 17:31:11 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gldPg-0004Gh-9Z for pgsql-bugs@lists.postgresql.org; Mon, 21 Jan 2019 17:31:09 +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 x0LHV2wF014775; Mon, 21 Jan 2019 12:31:02 -0500 From: Tom Lane To: mail@goessmann.io cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15600: ts_stat's nentry maxes out at 255 In-reply-to: <15600-21e38697e469be66@postgresql.org> References: <15600-21e38697e469be66@postgresql.org> Comments: In-reply-to =?utf-8?q?PG_Bug_reporting_form?= message dated "Mon, 21 Jan 2019 15:30:26 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <14773.1548091862.1@sss.pgh.pa.us> Date: Mon, 21 Jan 2019 12:31:02 -0500 Message-ID: <14774.1548091862@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =?utf-8?q?PG_Bug_reporting_form?= writes: > Unexpected behaviour: > netry for 'hello' results in 255 despite 'hello' occurs 539 times in the > attached test. I think this is a consequence of the MAXNUMPOS limitation in the source code, ie an individual tsvector won't store more than 255 locations for the same word. That's intentional to keep common words from bloating tsvectors too much. But if it's documented anywhere, I didn't see it. regards, tom lane