Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 1F30B9FB7D0; Tue, 10 Apr 2007 10:01:57 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 45838-02; Tue, 10 Apr 2007 10:01:45 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from gauss.credativ.com (ipx11302.ipxserver.de [212.112.227.254]) by postgresql.org (Postfix) with ESMTP id 2E3B59FB460; Tue, 10 Apr 2007 09:59:16 -0300 (ADT) Received: from hawking.credativ.lan (unknown [87.139.82.80]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by gauss.credativ.com (Postfix) with ESMTP id E49EDD7925; Tue, 10 Apr 2007 14:59:13 +0200 (CEST) From: Peter Eisentraut To: pgsql-www@postgresql.org Subject: Re: Re: [GENERAL] programmatic way to fetch latest release for a given major.minor version Date: Tue, 10 Apr 2007 14:59:12 +0200 User-Agent: KMail/1.9.5 Cc: Dave Page , Magnus Hagander , Andrew Hammond , CAJ CAJ , pgsql-general@postgresql.org References: <1176155240.221125.319880@y80g2000hsf.googlegroups.com> <20070410111509.GF24976@svr2.hagander.net> <461B768A.8070402@postgresql.org> In-Reply-To: <461B768A.8070402@postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200704101459.13598.peter_e@gmx.net> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/26 X-Sequence-Number: 11776 Am Dienstag, 10. April 2007 13:35 schrieb Dave Page: > Imagine wanting to display only the details of the 8.x releases on a > site for example. In your schema, you'd have to use a substring match on > an attribute value to filter out 6.x and 7.x. That use case is just as valid as wanting to show only releases >= 7.4. The user could run an arithmetic expression to check for that and >= 8.0. -- Peter Eisentraut http://developer.postgresql.org/~petere/