Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id E1B639FA603 for ; Tue, 10 Apr 2007 13:48:27 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 92838-06 for ; Tue, 10 Apr 2007 13:48:13 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.236]) by postgresql.org (Postfix) with ESMTP id D5BAB9FA4D4 for ; Tue, 10 Apr 2007 13:48:19 -0300 (ADT) Received: by wx-out-0506.google.com with SMTP id i28so1760986wxd for ; Tue, 10 Apr 2007 09:48:19 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:received:received:received:received:from:to:cc:subject:in-reply-to:references:date:message-id:user-agent:mime-version:content-type:x-virus-scanned; b=pH9aenGP2v6+jo4ONCEBpzkVkmOzeS2n2lQWvDb0Xb8VwYfp3ICcIb8lGqGUZyUiKi4zAQoZ2/9N7+ECRMQB9mdXRdkXTTwt7aqZJjKwawXb0u8VnbkdYSvaWUX0ydFk/iERdtsVQmhZMbA04oOo+uDz7IsMCU5X02ib/VeMXjc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:cc:subject:in-reply-to:references:date:message-id:user-agent:mime-version:content-type:x-virus-scanned; b=C5mx0HN2LI9q5L1qp1+BT8codQymSRHiaFQaExAgsKKc0Gu7WIVoz7vkUlIf5rya4n/vTXbZngY6tVAB9MuwpgjnZwvRkbEgi+6aAElT+tESuqUxq36viGktjjES3pxSmeaNlgnhAjj5qbOoa9wlg+c2TFgI0GMHh8joz/AQ5t0= Received: by 10.70.115.17 with SMTP id n17mr12995962wxc.1176223698990; Tue, 10 Apr 2007 09:48:18 -0700 (PDT) Received: from strongwill.g2ctech ( [201.22.19.144]) by mx.google.com with ESMTP id h34sm274536wxd.2007.04.10.09.48.17; Tue, 10 Apr 2007 09:48:18 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by strongwill.g2ctech (Postfix) with ESMTP id 8750AF7460; Tue, 10 Apr 2007 13:48:14 -0300 (BRST) Received: from strongwill.g2ctech ([127.0.0.1]) by localhost (strongwill.g2ctech [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21760-03-3; Tue, 10 Apr 2007 13:48:13 -0300 (BRST) Received: from jupiter.g2ctech (bhquality.com.br [200.181.142.253]) by strongwill.g2ctech (Postfix) with ESMTP id 82B76F745C; Tue, 10 Apr 2007 13:48:13 -0300 (BRST) Received: by jupiter.g2ctech (Postfix, from userid 1000) id 12F7E63A8E; Tue, 10 Apr 2007 13:48:08 -0300 (BRT) From: Jorge Godoy To: Listmail Cc: pgsql-general@postgresql.org Subject: Re: programmatic way to fetch latest release for a given major.minor version In-Reply-To: (lists@peufeu.com's message of "Tue\, 10 Apr 2007 13\:44\:43 +0200") References: <1176155240.221125.319880@y80g2000hsf.googlegroups.com> <467669b30704091526v79ae044boe7217cc0777dce1f@mail.gmail.com> <5a0a9d6f0704091534i4e4af90co2dad0e9e0b60efee@mail.gmail.com> <461B3E6A.8080007@postgresql.org> <20070410081558.GB24976@svr2.hagander.net> <461B5064.8010004@postgresql.org> <20070410101852.GC24976@svr2.hagander.net> <461B6F10.3040800@postgresql.org> <20070410111509.GF24976@svr2.hagander.net> Date: Tue, 10 Apr 2007 13:48:08 -0300 Message-ID: <87tzvo6urb.fsf@gmail.com> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: amavisd-new at g2ctech.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/450 X-Sequence-Number: 112353 Listmail writes: >>> Yeah yeah, but terminology aside, having 2 or three digits in each >>> attribute is just wrong! >> >> Terminology aside, why? The unit is "8.1" not "8" and "1". It makes no >> sense to say you're on version 8, in the given context, so why should the >> XML data pretend there is? >> >> //Magnus > > Just pretend that : > > - version = a tuple of integers (a, b, c, ...) > - major = (a, b) > - minor = (c, ...) > > Besides, that is sortable (unlike strings where 15 < 2) : But then, floats are as sortable as integers and 8.3 < 15.1... -- Jorge Godoy