Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id EA9A364FC07 for ; Mon, 22 Sep 2008 02:30:37 -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 80238-10 for ; Mon, 22 Sep 2008 02:30:35 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.233]) by postgresql.org (Postfix) with ESMTP id 43D7B64FC04 for ; Mon, 22 Sep 2008 02:30:35 -0300 (ADT) Received: by rv-out-0506.google.com with SMTP id b25so1216792rvf.43 for ; Sun, 21 Sep 2008 22:30:34 -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=woa5TJacpZrX/7WGR/9TysaXvt55U4Toy7KUyT88FR0=; b=Cl0jY7ulsCv1epBk1S+sKVwFJf0cLmiwQZiVzhBcuQZt1P+Zg5oWUJMSBRyHeivRqR hU79gmu9m0qozS7VUmr4XaIOqretiBRsWf32fNeme9tvMvt5BXxEq4UtDr4V+3qP0x+9 jV6CV9PfagNhlXarkkCXwnDk1M1rT/DsYA8TI= 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=u/wL3g05PbFtoxQIf/lPqvLo1rtml8uAksFUq8O4D/imD6vFRQU8jxh3ZP7IFhFI34 wS3w0DZwDWhXMszw9197/nU2wlQ0E5Y+UkpSp7K/R3NRkzsb4ZaMysTZP0C8AlYPO9z2 bprAYGY5ebVPO2qwhw4Bnk3dmsq7HdgRQnvks= Received: by 10.140.226.13 with SMTP id y13mr1730313rvg.2.1222061434332; Sun, 21 Sep 2008 22:30:34 -0700 (PDT) Received: by 10.141.44.13 with HTTP; Sun, 21 Sep 2008 22:30:34 -0700 (PDT) Message-ID: Date: Sun, 21 Sep 2008 22:30:34 -0700 From: "Ryan Bradetich" To: "Jaime Casanova" , "Tom Lane" Subject: Re: [PgFoundry] Unsigned Data Types [1 of 2] Cc: pgsql-patches In-Reply-To: <3073cc9b0809211729s50054a85kfb95925307a08442@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3073cc9b0809082254g789a7f14x45e9d416925b1057@mail.gmail.com> <22555.1220962305@sss.pgh.pa.us> <3073cc9b0809211729s50054a85kfb95925307a08442@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200809/143 X-Sequence-Number: 7158 Hello Jaime, > i'm still seeing the failures in the copy commands (the ones about the paths) I just tested this on a different machine (to get it away from my development environment) I was able to duplicate the failures. It looks like I need to update the expected/ files as well. I will get fixed ASAP. > i'm not really sure if this matters. > > contrib_regression=# select 256::int2::int4; > int4 > ------ > 256 > (1 row) > > contrib_regression=# select 256::uint2::int4; > int4 > ------ > 256 > (1 row) > > contrib_regression=# select 256::int2::uint4; > ERROR: cannot cast type smallint to uint4 at character 17 > STATEMENT: select 256::int2::uint4; > ERROR: cannot cast type smallint to uint4 > LINE 1: select 256::int2::uint4; To keep this type fairly simple, I was not planning to add these casts. My intention was to handle just enough casting for the required ASSIGNMENT and IMPLICIT casts and to gracefully handle the int4 type since naked numbers are implicitly cast to int4. > otherwise seems fine Thank you very much for your review! I am still working on adding comments to the uint.c file. I am hoping to have that completed tonight. Tom: Have you had a chance to look over the RESTRICT selectivity functions I implemented to handle the cross-type problem? Is that what you had in mind? Thanks! - Ryan