Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fVeQ8-0006BQ-Q8 for pgsql-general@arkaria.postgresql.org; Wed, 20 Jun 2018 14:49:16 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fVeQ6-0008B7-MY for pgsql-general@arkaria.postgresql.org; Wed, 20 Jun 2018 14:49:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fVeQ6-0008Ax-E8 for pgsql-general@lists.postgresql.org; Wed, 20 Jun 2018 14:49:14 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fVePz-0002gw-Ad for pgsql-general@postgresql.org; Wed, 20 Jun 2018 14:49:13 +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 w5KEn4D9005780; Wed, 20 Jun 2018 10:49:04 -0400 From: Tom Lane To: Jonathan Marks cc: pgsql-general@postgresql.org Subject: Re: tsvector field length limitation In-reply-to: <5A4EDC33-60F6-4998-AA8D-9B2ED615D87C@gmail.com> References: <5A4EDC33-60F6-4998-AA8D-9B2ED615D87C@gmail.com> Comments: In-reply-to Jonathan Marks message dated "Wed, 20 Jun 2018 10:24:13 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <5778.1529506144.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 20 Jun 2018 10:49:04 -0400 Message-ID: <5779.1529506144@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Jonathan Marks writes: > ... we run into the max tsvector length requirement "The length of a tsv= ector (lexemes + positions) must be less than 1 megabyte=E2=80=9D > Is there any way to disable or increase that limit in Postgres 10.3? No; it's forced by the representation used for tsvector, which stores lexeme offsets in 20-bit fields (cf WordEntry in src/include/tsearch/ts_type.h). Perhaps that was short-sighted but I don't foresee it changing anytime soon. You'd more or less need a whole new datatype ("bigtsvector"?) to make it happen. regards, tom lane