Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jM0vi-00011c-Kk for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Apr 2020 02:59:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jM0vh-0003CB-Fx for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Apr 2020 02:59:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jM0vh-0003AS-8l for pgsql-hackers@lists.postgresql.org; Wed, 08 Apr 2020 02:59:05 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jM0va-00045e-Pb for pgsql-hackers@lists.postgresql.org; Wed, 08 Apr 2020 02:59:04 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 0382wtPt007879; Tue, 7 Apr 2020 22:58:55 -0400 From: Tom Lane To: Alvaro Herrera cc: pgsql-hackers@lists.postgresql.org, Kyotaro Horiguchi Subject: Re: pgsql: Allow users to limit storage reserved by replication slots In-reply-to: <20200407232602.GA21559@alvherre.pgsql> References: <20200407232602.GA21559@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Tue, 07 Apr 2020 19:26:02 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <7877.1586314735.1@sss.pgh.pa.us> Date: Tue, 07 Apr 2020 22:58:55 -0400 Message-ID: <7878.1586314735@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alvaro Herrera writes: > However, even with that change, we're still testing that a checkpoint is > 216 bytes ... in other words, whenever someone changes the definition of > struct CheckPoint, this test will fail. That seems unnecessary and > unfriendly. I'm not sure how to improve that without also removing that > column. I read florican's results as showing that sizeof(CheckPoint) is already different on 32-bit machines than 64-bit; it's repeatably getting this: # Failed test 'check that the slot state changes to "reserved"' # at t/019_replslot_limit.pl line 125. # got: '0/15000C0|reserved|192 bytes' # expected: '0/15000C0|reserved|216 bytes' This test case was *not* well thought out. regards, tom lane