X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6970EDA815 for ; Thu, 20 Oct 2005 04:35:20 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 31464-04 for ; Thu, 20 Oct 2005 07:35:17 +0000 (GMT) Received: from mail.metronet.co.uk (mail.metronet.co.uk [213.162.97.75]) by svr1.postgresql.org (Postfix) with ESMTP id 927E2DA841 for ; Thu, 20 Oct 2005 04:35:18 -0300 (ADT) Received: from mainbox.archonet.com (84-51-143-99.archon037.adsl.metronet.co.uk [84.51.143.99]) by smtp.metronet.co.uk (MetroNet Mail) with ESMTP id 807AE40D714; Thu, 20 Oct 2005 08:35:15 +0100 (BST) Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id AF55115EDA; Thu, 20 Oct 2005 08:33:01 +0100 (BST) Received: from mainbox.archonet.com ([127.0.0.1]) by localhost (mainbox [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18428-09; Thu, 20 Oct 2005 08:32:59 +0100 (BST) Received: from [192.168.1.17] (client17.office.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 36F0A15ED5; Thu, 20 Oct 2005 08:32:59 +0100 (BST) Message-ID: <4357482A.9050008@archonet.com> Date: Thu, 20 Oct 2005 08:32:58 +0100 From: Richard Huxton User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Bryce Nesbitt (mailing list account)" Cc: pgsql-sql@postgresql.org Subject: Re: casting character varying to integer - order by numeric References: <4356EC5D.4080706@obviously.com> <3687.1129779194@sss.pgh.pa.us> <43573FCE.7070301@obviously.com> In-Reply-To: <43573FCE.7070301@obviously.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.059 required=5 tests=[AWL=0.009, FORGED_RCVD_HELO=0.05] X-Spam-Level: X-Archive-Number: 200510/233 X-Sequence-Number: 23086 Bryce Nesbitt (mailing list account) wrote: > Tom Lane wrote: >>As a general rule, you need to be more specific than that about which >>version you are working with ;-) > Oooh, I'd be so happy to. But I don't know. Yes, I don't know. > > I know which version of "psql" is installed on my local machine, but the actual > database is remote. Is there a command to get the server version? As close as > I can find is: > > stage=> \copyright SELECT version(); -- Richard Huxton Archonet Ltd