Re: Email data type

From: Gaetano Mendola <mendola(at)bigfoot(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Email data type
Date: 2004-05-16 21:39:33
Message-ID: c88n2v$ptc$1@floppy.pyrenet.fr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Gaetano Mendola wrote:

> Hi all, this is the alpha version for the new email data type,
> is not written as built in type but as plug in, Tome Lane and others
> drove me in this direction.
>
> The type is indexable and provide also conversion methods:
>
> text <--> email
> and the operator >>, is possible use it in select like:
>
> select * from my_user where email >> 'hotmail.com';
>
> this select will extract all records with an email inside
> the domain 'hotmail.com'.
>
> The validation routine is very simple, right now test only
> the presence of character '@' (it's an alpha version), I'd like
> to put it on pgfoundry but apparently my DNS are unable to resolve
> www.pgfoundry.org. I'll put this version as soon the address become
> available.
>
> This is the first time that I wrote code for postgresql so please, if
> you can, do a sort of code revision on it.
>
> Comments are welcomed.

Forget the version attached and use the version on pgfoundry.

Regards
Gaetano Mendola

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Marko Karppinen 2004-05-16 23:06:35 Re: Rough draft for Unicode-aware UPPER()/LOWER()/INITCAP()
Previous Message Peter Eisentraut 2004-05-16 21:35:33 Re: Rough draft for Unicode-aware UPPER()/LOWER()/INITCAP()