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 1oqxLF-0003mb-Gj for pgsql-hackers@arkaria.postgresql.org; Fri, 04 Nov 2022 14:06:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1oqxLE-00063U-99 for pgsql-hackers@arkaria.postgresql.org; Fri, 04 Nov 2022 14:06:40 +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 1oqxLD-00062V-VV for pgsql-hackers@lists.postgresql.org; Fri, 04 Nov 2022 14:06:40 +0000 Received: from mail1.dalibo.net ([51.159.93.128] helo=mail.dalibo.com) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oqxLC-0002Ze-3L for pgsql-hackers@postgresql.org; Fri, 04 Nov 2022 14:06:39 +0000 Received: from karst (larco.ioguix.net [78.202.0.6]) by mail.dalibo.com (Postfix) with ESMTPSA id 43CD31F886; Fri, 4 Nov 2022 15:06:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=dalibo.com; s=a; t=1667570790; bh=lL3duQS6EPHe8LbOE5ZdMJmn0Jbs4f1Upz1td5HoVU0=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=WEx9txlep0CU4cyuKOjYDrv+s7GObvfSP2KLjgX8WCLpoVDcWDqe1/TUfnmbs0LjG rWvCpMA4YmXjfHG5g2UWj34gawMfcl2Qf1A7nNaE1OHdL2A+dNoXxWctXMiLIfEkfj SFMtzdtzFzTnuPrROE2w+R7EZSwTxVwvTtaI7DGs= Date: Fri, 4 Nov 2022 15:06:29 +0100 From: Jehan-Guillaume de Rorthais To: Justin Pryzby Cc: Andrew Dunstan , pgsql-hackers@postgresql.org Subject: Re: Fix proposal for comparaison bugs in PostgreSQL::Version Message-ID: <20221104150629.2efffb5a@karst> In-Reply-To: <20221103181118.GX16921@telsasoft.com> References: <20220628225325.53d97b8d@karst> <20221103181118.GX16921@telsasoft.com> Organization: Dalibo MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, 3 Nov 2022 13:11:18 -0500 Justin Pryzby wrote: > On Tue, Jun 28, 2022 at 06:17:40PM -0400, Andrew Dunstan wrote: > > Nice catch, but this looks like massive overkill. I think we can very > > simply fix the test in just a few lines of code, instead of a 190 line > > fix and a 130 line TAP test. > > > > It was never intended to be able to compare markers like rc1 vs rc2, and > > I don't see any need for it. If you can show me a sane use case I'll > > have another look, but right now it seems quite unnecessary. > > > > Here's my proposed fix. > > > > diff --git a/src/test/perl/PostgreSQL/Version.pm > > b/src/test/perl/PostgreSQL/Version.pm index 8f70491189..8d4dbbf694 100644 > > --- a/src/test/perl/PostgreSQL/Version.pm > > Is this still an outstanding issue ? The issue still exists on current HEAD: $ perl -Isrc/test/perl/ -MPostgreSQL::Version -le \ 'print "bug" if PostgreSQL::Version->new("9.6") <= 9.0' bug Regards,