From: Jonathan Marks <jonathanaverymarks@gmail.com>
To: pgsql-general@postgresql.org
Subject: tsvector field length limitation
Date: Wed, 20 Jun 2018 10:24:13 -0400
Message-ID: <5A4EDC33-60F6-4998-AA8D-9B2ED615D87C@gmail.com> (raw)
Hi folks —
We utilize Postgres’ full text search system pretty heavily in our team’s operations and often index tens of millions of records with varying lengths of text. In most cases, the text we need to index is pretty short (no more than. hundreds of words) but in rare cases a single record is very very long (high hundreds of thousands of words or longer). With those records, we run into the max tsvector length requirement "The length of a tsvector (lexemes + positions) must be less than 1 megabyte”
I understand the performance implications of having very long tsvectors (our gin index updates are pretty terrible in some cases) but would really appreciate it if the max tsvector length were larger (even 5MB would make a huge difference) or if that error were a stern warning rather than a hard error.
Is there any way to disable or increase that limit in Postgres 10.3? Perhaps in a future version?
Thank you!
Jonathan
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
Subject: Re: tsvector field length limitation
In-Reply-To: <5A4EDC33-60F6-4998-AA8D-9B2ED615D87C@gmail.com>
References: <5A4EDC33-60F6-4998-AA8D-9B2ED615D87C@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