Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id BF833650E79 for ; Sat, 28 Jun 2008 16:28:07 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 61416-10 for ; Sat, 28 Jun 2008 16:28:02 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.31]) by postgresql.org (Postfix) with ESMTP id D3801650DBC for ; Sat, 28 Jun 2008 16:28:04 -0300 (ADT) Received: by yw-out-2324.google.com with SMTP id 3so425385ywj.73 for ; Sat, 28 Jun 2008 12:27:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=BEUB3+2T9uphx2okdiGBbaBA8DRPPaJthKmJucylZ0I=; b=hH+RZ+p4FZ8gTiLbrPRN52Za80WFXdqQsC8uy/EmdfOhBAvb2UE1PGLkwPC4XwzAwj KW0K60BNHm9C5t03dGyML5Svtlo+SEpFOQJJJQVTmo/NqnavoXUoM7eTCN8o25sMJO6a s0qL15xAlir3WwjSFZQBKjoStrdMfYk91qSz8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=EfOu/24AwHZ6YZI49rZ2B2pApO6C8ZONXs7R1G6BmcLHsQ5DZQ4WGgiZ5EocxBqhN8 nru7JUH4ivtlUyyl/I5UJ10HwpwYRr9IjaeWSgrZ74a5aQqF6IwZxRc/aXPRTT7s1Hp5 HTOwWoMLkC4spIvraf5JNui+s3FIO0AhckuhY= Received: by 10.150.219.3 with SMTP id r3mr4892509ybg.65.1214681277961; Sat, 28 Jun 2008 12:27:57 -0700 (PDT) Received: by 10.150.53.20 with HTTP; Sat, 28 Jun 2008 12:27:57 -0700 (PDT) Message-ID: <4544e0330806281227y21773c99ja0dbce9fb74be302@mail.gmail.com> Date: Sat, 28 Jun 2008 14:27:57 -0500 From: "Peter Koczan" To: "Roberto Garcia" Subject: Re: Major upgrade advice Cc: pgsql-admin@postgresql.org, "Steve Crawford" In-Reply-To: <48595B63.4080000@cptec.inpe.br> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48594429.7040001@pinpointresearch.com> <48595B63.4080000@cptec.inpe.br> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.083 tagged_above=0 required=5 tests=AWL=0.083 X-Spam-Level: X-Archive-Number: 200806/238 X-Sequence-Number: 29576 On Wed, Jun 18, 2008 at 2:00 PM, Roberto Garcia wrote: > Just to mention one issue we had here: > > In 8.1 we did this to retrieve all data from a specific date: > SELECT * FROM xxx > WHERE LIKE '2008-05-20%' > > In 8.3 we had to change to: > SELECT * FROM xxx > WHERE >= CAST('2008-05-20' as timestamp) AND > < CAST('2008-05-21' as timestamp) Also, don't forget that bareword numbers don't automatically cast to text anymore. For instance, assuming col is a text type (char, varchar, text), the query select * from table where col = 1000 Will throw an error in 8.3 whereas it will work under pre-8.3 releases. You can one either of the following to make it work. select * from table where col = 1000::text select * from table where col = '1000' I've been bitten by that bug a few times. Peter