BUG #18080: to_tsvector fails for long text input

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: uwe(dot)binder(at)pass-consulting(dot)com
Subject: BUG #18080: to_tsvector fails for long text input
Date: 2023-09-04 08:42:57
Message-ID: 18080-d5c5e58fef8c99b7@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 18080
Logged by: Uwe Binder
Email address: uwe(dot)binder(at)pass-consulting(dot)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.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message PG Bug reporting form 2023-09-04 09:12:06 BUG #18081: Spurious "function with OID ###### does not exist" error
Previous Message Thomas Munro 2023-09-04 07:43:59 Re: BUG #17928: Standby fails to decode WAL on termination of primary