Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Z8Vyz-0001bz-BI for pgsql-bugs@arkaria.postgresql.org; Fri, 26 Jun 2015 15:56:01 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Z8Vyy-0006g3-5f for pgsql-bugs@arkaria.postgresql.org; Fri, 26 Jun 2015 15:56:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1Z8QUQ-0001xF-LP for pgsql-bugs@postgresql.org; Fri, 26 Jun 2015 10:04:06 +0000 Received: from wrigleys.postgresql.org ([204.145.124.246]) by magus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1Z8QUN-00085J-QC for pgsql-bugs@postgresql.org; Fri, 26 Jun 2015 10:04:05 +0000 MIME-Version: 1.0 Subject: BUG #13470: Logical replication 'invalid memory alloc' To: pgsql-bugs@postgresql.org From: kotlarski.krzysztof@gmail.com Date: Fri, 26 Jun 2015 10:03:33 +0000 Message-ID: <20150626100333.3874.90852@wrigleys.postgresql.org> X-Pg-Spam-Score: -0.3 (/) Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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