Logical Replication 08P01 invalid memory alloc request size 1095736448 - Mailing list pgsql-general

From Soni M
Subject Logical Replication 08P01 invalid memory alloc request size 1095736448
Date
Msg-id CAAMgDXkrDTZwo3v=vcGd0=axjEg9BV09LL=f2+n=DShFBmAV9Q@mail.gmail.com
Whole thread Raw
Responses Re: Logical Replication 08P01 invalid memory alloc request size 1095736448
List pgsql-general
Hello All,
we have this set up :
Postgres 15.13 on RHEL 9.6

Logical Master also have 2 streaming replica
Logical Replica also have 1 streaming replica

We just do patch updates from 15.12 to 15.13, restart Logical Master and then Logical Replica, and suddenly Logical replication stops working. Streaming replication of both are fine.

The message on Logical Replica : 
ERROR,08P01,"could not receive data from WAL stream: ERROR:  invalid memory alloc request size 1095736448",,,,,,,,,"","logical replication worker",,0

The message on Logical Master :
"START_REPLICATION", LOG,00000,"starting logical decoding for slot ""_subscription""","Streaming transactions committing after 33D45/373C2D98, reading WAL from 33D44/EF3219B0.",,,,,"START_REPLICATION SLOT ""_subscription"" LOGICAL 33D45/373C2D98 (proto_version '3', publication_names '""_publication""')",,,"_subscription","walsender",,0

"START_REPLICATION", ,LOG,00000,"logical decoding found consistent point at 33D44/EF3219B0","Logical decoding will begin using saved snapshot.",,,,,"START_REPLICATION SLOT ""_subscription"" LOGICAL 33D45/373C2D98 (proto_version '3', publication_names '""_publication""')",,,"_subscription","walsender",,0

Checking at error code 08P01 is protocol_violation.

Is there any idea on what causing this and how to resolve ?

--
Regards,

Soni Maula Harriz

pgsql-general by date:

Previous
From: Pierre Fortin
Date:
Subject: Re: pg_upgrade: can I use same binary for old & new?
Next
From: Tom Lane
Date:
Subject: Re: Logical Replication 08P01 invalid memory alloc request size 1095736448