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 1nRHVh-0005jq-Ll for pgsql-hackers@arkaria.postgresql.org; Mon, 07 Mar 2022 17:51:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nRHVf-0006Ly-S6 for pgsql-hackers@arkaria.postgresql.org; Mon, 07 Mar 2022 17:51:03 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nRHVf-0006Lo-Il for pgsql-hackers@lists.postgresql.org; Mon, 07 Mar 2022 17:51:03 +0000 Received: from ssl.nataraj.su ([88.198.198.57]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nRHVY-0007ag-O2 for pgsql-hackers@postgresql.org; Mon, 07 Mar 2022 17:51:02 +0000 Received: from thinkpad-pgpro.localnet (unknown [91.203.188.92]) by ssl.nataraj.su (Postfix) with ESMTPSA id 5F9049D431; Mon, 7 Mar 2022 17:50:55 +0000 (UTC) From: Nikolay Shaplov To: Greg Stark Cc: PostgreSQL Hackers Subject: Re: [PATCH] minor reloption regression tests improvement Date: Mon, 07 Mar 2022 20:50:53 +0300 Message-ID: <10293663.yiiO4rj43x@thinkpad-pgpro> In-Reply-To: References: <4563991.km65PDbjlG@thinkpad-pgpro> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk =D0=92 =D0=BF=D0=B8=D1=81=D1=8C=D0=BC=D0=B5 =D0=BE=D1=82 =D0=BF=D0=BE=D0=BD= =D0=B5=D0=B4=D0=B5=D0=BB=D1=8C=D0=BD=D0=B8=D0=BA, 7 =D0=BC=D0=B0=D1=80=D1= =82=D0=B0 2022 =D0=B3. 20:04:49 MSK =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0= =B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C Greg Stark=20 =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB: > I don't think this is worth spending time adding tests for. I get what > you're saying that this is at least semi-intentional behaviour and > desirable behaviour so it should have tests ensuring that it continues > to work. But it's not documented behaviour and the test is basically > testing that the implementation is this specific implementation. >=20 > I don't think the test is really a bad idea but neither is it really > very useful and I think it's not worth having people spend time > reviewing and discussing. I'm leaning to saying this patch is > rejected. This is a regression test. To test if behaviour brocken or not. Actually I came to the idea of the test when I wrote my big reloption patch= =2E=20 I've broken this behaviour by mistake and did not notice it as it have not= =20 been properly tested. So I decided it would be goo to add test to it before= =20 adding and big patches. =2D-=20 Nikolay Shaplov aka Nataraj =46uzzing Engineer at Postgres Professional Matrix IM: @dhyan:nataraj.su