Re: Range types - Mailing list pgsql-hackers

From tomas@tuxteam.de
Subject Re: Range types
Date
Msg-id 20091214114550.GA11306@tomas
Whole thread Raw
In response to Re: Range types  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, Dec 14, 2009 at 06:02:04AM -0500, Robert Haas wrote:
> On Mon, Dec 14, 2009 at 4:06 AM,  <tomas@tuxteam.de> wrote:

[...]

> > This looks more natural to me too.
> 
> It 's very different than the way we've traditionally used typmod,
> though, which Tom described pretty well here:
> 
> http://archives.postgresql.org/pgsql-hackers/2009-11/msg01183.php
> 
> For example, function signatures ignore typmod, so you'll be able to
> write a function that takes a range, but you won't know what kind of
> range you're getting [...]

> Also, typid is unsigned and typmod is signed.  Again, awkward [...]

Ugh. I see. Thank you for this very insightful comment.

Regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFLJiVuBcgs9XrR2kYRAp4ZAJsHjzYuVxwaeAUr1ogqRsZOecxdcwCeLfUv
8lZmeY6lb4r+57c6ZdB0J9M=
=0Ips
-----END PGP SIGNATURE-----


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [PATCH] ACE Framework - Database, Schema
Next
From: Robert Haas
Date:
Subject: Re: Hot Standby, release candidate?