pg.ddx.io  pgsql-patches@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ryan Bradetich <rbradetich@gmail.com>
To: Jaime Casanova <jcasanov@systemguards.com.ec>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-patches <pgsql-patches@postgresql.org>
Subject: Re: [PgFoundry] Unsigned Data Types [1 of 2]
Date: Sun, 21 Sep 2008 22:30:34 -0700
Message-ID: <e739902b0809212230q78043a72u16d9508cb4ad2fc7@mail.gmail.com> (raw)
In-Reply-To: <3073cc9b0809211729s50054a85kfb95925307a08442@mail.gmail.com>
References: <e739902b0808311335l1ad5d425r2704429c386f2f88@mail.gmail.com>
	<e739902b0809082008p6c694a20ufd526d1ce5d46750@mail.gmail.com>
	<3073cc9b0809082254g789a7f14x45e9d416925b1057@mail.gmail.com>
	<e739902b0809082325s69c21814mbc0dc8dfd6ebfec6@mail.gmail.com>
	<22555.1220962305@sss.pgh.pa.us>
	<e739902b0809090814j55a75d6dm213432b87f4b0c5f@mail.gmail.com>
	<e739902b0809100803jc35798fga19b3e77019422fa@mail.gmail.com>
	<e739902b0809150813x7e3e2af6s4174197efd5d3070@mail.gmail.com>
	<e739902b0809151945v16fe3af0pe78b2cb133d94c91@mail.gmail.com>
	<3073cc9b0809211729s50054a85kfb95925307a08442@mail.gmail.com>

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



view thread (26+ messages)  latest in thread

Message-ID: <e739902b0809212230q78043a72u16d9508cb4ad2fc7@mail.gmail.com>
Permalink:  ../e739902b0809212230q78043a72u16d9508cb4ad2fc7@mail.gmail.com/
Also on:    postgresql.org/message-id/e739902b0809212230q78043a72u16d9508cb4ad2fc7@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-patches@postgresql.org
  Cc: rbradetich@gmail.com, jcasanov@systemguards.com.ec, tgl@sss.pgh.pa.us
  Subject: Re: [PgFoundry] Unsigned Data Types [1 of 2]
  In-Reply-To: <e739902b0809212230q78043a72u16d9508cb4ad2fc7@mail.gmail.com>
  References: <e739902b0808311335l1ad5d425r2704429c386f2f88@mail.gmail.com> <e739902b0809082008p6c694a20ufd526d1ce5d46750@mail.gmail.com> <3073cc9b0809082254g789a7f14x45e9d416925b1057@mail.gmail.com> <e739902b0809082325s69c21814mbc0dc8dfd6ebfec6@mail.gmail.com> <22555.1220962305@sss.pgh.pa.us> <e739902b0809090814j55a75d6dm213432b87f4b0c5f@mail.gmail.com> <e739902b0809100803jc35798fga19b3e77019422fa@mail.gmail.com> <e739902b0809150813x7e3e2af6s4174197efd5d3070@mail.gmail.com> <e739902b0809151945v16fe3af0pe78b2cb133d94c91@mail.gmail.com> <3073cc9b0809211729s50054a85kfb95925307a08442@mail.gmail.com> <e739902b0809212230q78043a72u16d9508cb4ad2fc7@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox