Logical replication 'ERROR: invalid memory alloc request size 1831213792' after upgrading to 15.13

From: Braulio Fdo Gonzalez <brauliofg(at)gmail(dot)com>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Logical replication 'ERROR: invalid memory alloc request size 1831213792' after upgrading to 15.13
Date: 2025-06-09 12:10:11
Message-ID: CANO2=B=2BT1hSYCE=nuuTnVTnjidMg0+-FfnRnqM6kd23qoygg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hi, I'm having the issue with PG 15.13. We tried adding more memory
(logical_decoding_work_mem) to 5 GB, but it still doesn't work, and the
process "replicate" stops with the following error:

"CDC Fetch Failed: An unexpected connection error occurred while attempting
to replicate data from the source. Make sure your connection profile
settings are correct. If the problem persists, contact Google Support."
"ERROR: Invalid memory allocation request, size 1674007328."

We have another environment with PG 15.12, and it works perfectly.

This case has have relation with
https://www.postgresql.org/message-id/CALDaNm2sGfKsZwm8rG132N_i0AvyxkYu8TL46kNcx7KwAUABxA%40mail.gmail.com

--

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2025-06-09 14:26:33 Re: BUG #18907: SSL error: bad length failure during transfer data in pipeline mode with libpq
Previous Message Fujii Masao 2025-06-09 10:07:42 Re: BUG #18947: TRAP: failed Assert("len_to_wrt >= 0") in pg_stat_statements