pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: uwe.binder@pass-consulting.com
Subject: BUG #18080: to_tsvector fails for long text input
Date: Mon, 04 Sep 2023 08:42:57 +0000
Message-ID: <18080-d5c5e58fef8c99b7@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      18080
Logged by:          Uwe Binder
Email address:      uwe.binder@pass-consulting.com
PostgreSQL version: 13.11
Operating system:   Rocky Linux 9
Description:        

PostgreSQL 13.11 on x86_64-redhat-linux-gnu, compiled by gcc (GCC) 11.3.1
20221121 (Red Hat 11.3.1-4), 64-bit

SELECT to_tsvector('english'::regconfig, (REPEAT('<Long123456789/>'::text,
20000000)));
results in
ERROR:  invalid memory alloc request size 2133333320

Where SELECT LENGTH(REPEAT('<Long123456789/>'::text, 20000000));
correctly returns 320000000 .

PostgresSQL is running in a Docker Container with 4GB.



view thread (5+ messages)  latest in thread

Message-ID: <18080-d5c5e58fef8c99b7@postgresql.org>
Permalink:  ../18080-d5c5e58fef8c99b7@postgresql.org/
Also on:    postgresql.org/message-id/18080-d5c5e58fef8c99b7@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-bugs@postgresql.org
  Cc: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, uwe.binder@pass-consulting.com
  Subject: Re: BUG #18080: to_tsvector fails for long text input
  In-Reply-To: <18080-d5c5e58fef8c99b7@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