From: Jonathan Marks <jonathanaverymarks@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general@postgresql.org
Subject: Re: tsvector field length limitation
Date: Wed, 20 Jun 2018 11:40:53 -0400
Message-ID: <09ECA82E-C221-4D79-B2FC-5493F330B6EB@gmail.com> (raw)
In-Reply-To: <5779.1529506144@sss.pgh.pa.us>
References: <5A4EDC33-60F6-4998-AA8D-9B2ED615D87C@gmail.com>
<5779.1529506144@sss.pgh.pa.us>
What if we just didn’t use positional arguments at all? I.e. we just populate the tsvector with lexemes only?
> On Jun 20, 2018, at 10:49 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> Jonathan Marks <jonathanaverymarks@gmail.com> writes:
>> ... we run into the max tsvector length requirement "The length of a tsvector (lexemes + positions) must be less than 1 megabyte”
>
>> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: jonathanaverymarks@gmail.com, tgl@sss.pgh.pa.us
Subject: Re: tsvector field length limitation
In-Reply-To: <09ECA82E-C221-4D79-B2FC-5493F330B6EB@gmail.com>
References: <5A4EDC33-60F6-4998-AA8D-9B2ED615D87C@gmail.com> <5779.1529506144@sss.pgh.pa.us> <09ECA82E-C221-4D79-B2FC-5493F330B6EB@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox