Re: PostgreSQL Top 10 Wishlist

From: "Jim C(dot) Nasby" <jnasby(at)pervasive(dot)com>
To: Chris Browne <cbbrowne(at)acm(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PostgreSQL Top 10 Wishlist
Date: 2006-01-16 21:46:48
Message-ID: 20060116214648.GK67693@pervasive.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Jan 16, 2006 at 12:13:15PM -0500, Chris Browne wrote:
> What you seem to be after, here, would confine your telno formatting
> to telephone numbers for Canada and the United States, and would break
> any time people have a need to express telephone numbers outside those
> two countries.
>
> It would be quite interesting to add an EB164 type, as it could
> represent phone numbers considerably more compactly than is the case
> for plain strings. The 20 digits permissible across 1. and 2. could
> be encoded in... 68 bits.

And it would be trivial to provide functions to map that into the
customary format for various countries. In fact, since there's 4 bits
left over, it might be possible to encode the formatting used for the
number in the storage itself.

BTW, you sure about 68 bits? That doesn't seem to allow for a full 20
digit number; or are there restrictions on the max value for one of the
fields?
--
Jim C. Nasby, Sr. Engineering Consultant jnasby(at)pervasive(dot)com
Pervasive Software http://pervasive.com work: 512-231-6117
vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Zlatko Matić 2006-01-16 21:50:20 linking temporary tables from MS Access?
Previous Message Michael Fuhr 2006-01-16 21:32:00 Re: Plans for 8.2?