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 1ixWdB-0003GH-Ix for pgsql-hackers@arkaria.postgresql.org; Fri, 31 Jan 2020 13:46:46 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ixWd9-0002FV-VU for pgsql-hackers@arkaria.postgresql.org; Fri, 31 Jan 2020 13:46:43 +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 1ixWd9-0002FO-CW for pgsql-hackers@lists.postgresql.org; Fri, 31 Jan 2020 13:46:43 +0000 Received: from cyclops.postgrespro.ru ([93.174.131.138] helo=mail.postgrespro.ru) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ixWd6-0004fg-7o for pgsql-hackers@postgresql.org; Fri, 31 Jan 2020 13:46:42 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id 9077721C62E1 for ; Fri, 31 Jan 2020 16:46:36 +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.200] (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 ACFDA21C6284 for ; Fri, 31 Jan 2020 16:46:36 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1580478396; bh=4Zsjh22knpBpVdo2TPzwxFk2idcXoVbIR1RNZ/7+PDU=; h=To:From:Subject:Date; b=LlOFrkLTW+ci0ehEVH2/JHIv4T1qvNs/xEhYOk0Jwvps2BGI34OJQGI9aRENpmin7 Ca3gJL9lwzYR0iKeuPr0KmCD65CFxIyM7fKe0PzcZilwo/bsZBNIszVT8xXFmpRijh zX2f8Ij5eIX4GdfKwsN/Raxhcu9XAFTIq0FC9COo= To: PostgreSQL Hackers From: Konstantin Knizhnik Subject: Missing break in RelationFindReplTupleSeq Message-ID: <379743f6-ae91-b866-f7a2-5624e6d2b0a4@postgrespro.ru> Date: Fri, 31 Jan 2020 16:46:36 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Eventually we find out that logical replication in the current version of Postgres works significantly slower on table with replica identity full than old pglogical implementation. The comment to RelationFindReplTupleSeq says:     Note that this stops on the first matching tuple. But actually this function continue traversal until end of the table even if tuple was found. I wonder if break; should be added to the end of for loop. -- Konstantin Knizhnik Postgres Professional: http://www.postgrespro.com The Russian Postgres Company