Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gqgu5-0002Rm-E8 for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Feb 2019 16:15:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gqgu3-0003a3-Ed for pgsql-hackers@arkaria.postgresql.org; Mon, 04 Feb 2019 16:15:23 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gqgu3-0003Zo-0o for pgsql-hackers@lists.postgresql.org; Mon, 04 Feb 2019 16:15:23 +0000 Received: from mail.postgrespro.ru ([93.174.131.138]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gqgty-0002Dl-Am for pgsql-hackers@postgresql.org; Mon, 04 Feb 2019 16:15:21 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id 14A6A21C7797; Mon, 4 Feb 2019 19:15:15 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at postgrespro.ru X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=x tagged_above=-99 required=4 WHITELISTED tests=[] autolearn=unavailable Received: from [192.168.27.223] (gw.postgrespro.ru [93.174.131.141]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mail.postgrespro.ru (Postfix) with ESMTPSA id C730D21C7763; Mon, 4 Feb 2019 19:15:14 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1549296914; bh=OKZ8Cn1C23ePBHNPDoDA8T73o4ivMTg9sWT6ZG3pAfY=; h=Subject:To:References:From:Date:In-Reply-To; b=NU00uIqEebtDXa3LWXlXPt16IFgVdE098BFLBShdYOpV5mkYctSuX4l/NB3H8jNZK pAPNVDPSiZR4etb3AxFBsUZYs0FCv5noPzhI4OLVw0qYV7q+kCz40HsuPDGsBZoZ7j 07WCPXj1kAenJy+dNMqOy7UTJVoy00LwE/6enay8= Subject: Re: Too rigorous assert in reorderbuffer.c To: Arseny Sher , pgsql-hackers , Alexander Lakhin References: <874l9p8hyw.fsf@ars-thinkpad> From: Alexey Kondratov Message-ID: <61bad5f3-3787-ab31-c42c-e7447c089974@postgrespro.ru> Date: Mon, 4 Feb 2019 19:15:14 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <874l9p8hyw.fsf@ars-thinkpad> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 31.01.2019 9:21, Arseny Sher wrote: > My colleague Alexander Lakhin has noticed an assertion failure in > reorderbuffer.c:1330. Here is a simple snippet reproducing it: > > SELECT 'init' FROM pg_create_logical_replication_slot('regression_slot', 'test_decoding'); > > create table t(k int); > begin; > savepoint a; > alter table t alter column k type text; > rollback to savepoint a; > alter table t alter column k type bigint; > commit; > > SELECT data FROM pg_logical_slot_get_changes('regression_slot', NULL, NULL, 'include-xids', '0', 'skip-empty-xacts', '1'); I just want to add, that I have accidentally discovered the same issue during the testing of the Tomas's large transactions streaming patch [1], and had to remove this assert to get things working. I thought that it was somehow related to the streaming mode and did not test the same query alone. [1] https://www.postgresql.org/message-id/76fc440e-91c3-afe2-b78a-987205b3c758%402ndquadrant.com Regards -- Alexey Kondratov Postgres Professional https://www.postgrespro.com Russian Postgres Company