pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Doc: clean up documentation about text search datatype limits.
Date: Mon, 17 Aug 2026 22:18:09 +0000
Message-ID: <E1ww5ei-00000000yaj-03PW@gemulon.postgresql.org> (raw)

Doc: clean up documentation about text search datatype limits.

textsearch.sgml neglected to mention that the MAXSTRPOS total-length
limit applies to tsquery as well as tsvector.  It also claims that
there is a 32K limit on the total number of nodes in a tsquery, which
is wrong.  (I suspect that QueryOperator.left may once have been
int16, which would give rise to such a limit.  But it's uint32 now,
so you'd hit the 1GB varlena limit well before overflowing that.)

While at it, re-order the bullet points into an order that makes
more sense, to me anyway.

Reported-by: Claude Code (via Noah Misch)
Author: Tom Lane <tgl@sss.pgh.pa.us>
Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://postgr.es/m/455079.1786897319@sss.pgh.pa.us
Backpatch-through: 14

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4921447bea7d6874384bd8d651d66074de39a8aa

Modified Files
--------------
doc/src/sgml/textsearch.sgml | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)



view thread (7+ messages)  latest in thread

Message-ID: <E1ww5ei-00000000yaj-03PW@gemulon.postgresql.org>
Permalink:  ../E1ww5ei-00000000yaj-03PW@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1ww5ei-00000000yaj-03PW@gemulon.postgresql.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Doc: clean up documentation about text search datatype limits.
  In-Reply-To: <E1ww5ei-00000000yaj-03PW@gemulon.postgresql.org>

* 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