pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jonathan Marks <jonathanaverymarks@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: tsvector field length limitation
Date: Wed, 20 Jun 2018 10:49:04 -0400
Message-ID: <5779.1529506144@sss.pgh.pa.us> (raw)
In-Reply-To: <5A4EDC33-60F6-4998-AA8D-9B2ED615D87C@gmail.com>
References: <5A4EDC33-60F6-4998-AA8D-9B2ED615D87C@gmail.com>

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




view thread (4+ messages)  latest in thread

Message-ID: <5779.1529506144@sss.pgh.pa.us>
Permalink:  ../5779.1529506144@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5779.1529506144@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, jonathanaverymarks@gmail.com
  Subject: Re: tsvector field length limitation
  In-Reply-To: <5779.1529506144@sss.pgh.pa.us>
  References: <5A4EDC33-60F6-4998-AA8D-9B2ED615D87C@gmail.com> <5779.1529506144@sss.pgh.pa.us>

* 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