From: kotlarski.krzysztof@gmail.com
To: pgsql-bugs@postgresql.org
Subject: BUG #13470: Logical replication 'invalid memory alloc'
Date: Fri, 26 Jun 2015 10:03:33 +0000
Message-ID: <20150626100333.3874.90852@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 13470
Logged by: Krzysztof Kotlarski
Email address: kotlarski.krzysztof@gmail.com
PostgreSQL version: 9.4.4
Operating system: Tested OS X and Gentoo
Description:
Minimal reproductible example:
SELECT * FROM pg_create_logical_replication_slot('test_slot',
'test_decoding');
CREATE TABLE "t" ("a" character varying);
ALTER TABLE "t" REPLICA IDENTITY FULL;
INSERT INTO "t" ("a") VALUES ('a1');
ALTER TABLE "t" ADD "b" character varying;
UPDATE "t" SET "a" = 'a2';
SELECT * FROM pg_logical_slot_get_changes('test_slot', NULL, NULL);
Produces:
slot_name | xlog_position
-----------+---------------
test_slot | 6/BD3C1950
(1 row)
CREATE TABLE
ALTER TABLE
INSERT 0 1
ALTER TABLE
UPDATE 1
ERROR: invalid memory alloc request size 18446744073709551613
CONTEXT: slot "test_slot", output plugin "test_decoding", in the change
callback, associated LSN 6/BD3D8C28
Bug affects all 9.4 versions.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: kotlarski.krzysztof@gmail.com
Subject: Re: BUG #13470: Logical replication 'invalid memory alloc'
In-Reply-To: <20150626100333.3874.90852@wrigleys.postgresql.org>
References: <20150626100333.3874.90852@wrigleys.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