pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Phone number type extension
4+ messages / 4 participants
[nested] [flat]

* Phone number type extension
@ 2019-09-28 09:11 stan <stanb@panix.com>
  2019-09-28 10:13 ` Re: Phone number type extension Morris de Oryx <morrisdeoryx@gmail.com>
  2019-09-28 23:12 ` Re: Phone number type extension Andreas 'ads' Scherbaum <ads@pgug.de>
  0 siblings, 2 replies; 4+ messages in thread

From: stan @ 2019-09-28 09:11 UTC (permalink / raw)
  To: pgsql-general

Is there any currently supported version of this? I found one using google,
but it looks like it was last updated around version 8 of Postgres.


-- 
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
						-- Benjamin Franklin





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Phone number type extension
  2019-09-28 09:11 Phone number type extension stan <stanb@panix.com>
@ 2019-09-28 10:13 ` Morris de Oryx <morrisdeoryx@gmail.com>
  2019-09-28 11:42   ` Re: Phone number type extension Ray O'Donnell <ray@rodonnell.ie>
  1 sibling, 1 reply; 4+ messages in thread

From: Morris de Oryx @ 2019-09-28 10:13 UTC (permalink / raw)
  To: stan <stanb@panix.com>; +Cc: pgsql-general

For clarification, what do you mean by "phone number"? I'm not being dense,
I'm wondering if you're looking for a type that handles only numbers from
one country, or that can deal with the rules for a variety of countries.

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Phone number type extension
  2019-09-28 09:11 Phone number type extension stan <stanb@panix.com>
  2019-09-28 10:13 ` Re: Phone number type extension Morris de Oryx <morrisdeoryx@gmail.com>
@ 2019-09-28 11:42   ` Ray O'Donnell <ray@rodonnell.ie>
  0 siblings, 0 replies; 4+ messages in thread

From: Ray O'Donnell @ 2019-09-28 11:42 UTC (permalink / raw)
  To: Morris de Oryx <morrisdeoryx@gmail.com>; stan <stanb@panix.com>; +Cc: pgsql-general

On 28/09/2019 11:13, Morris de Oryx wrote:
> For clarification, what do you mean by "phone number"? I'm not being 
> dense, I'm wondering if you're looking for a type that handles only 
> numbers from one country, or that can deal with the rules for a variety 
> of countries.

That was my first thought also. For example, here in Ireland we have 
different numbers of digits in both area code and local number depending 
on where in the country you are - and in fact, we can't always agree on 
where the area code ends and the local number begins! :-)

Ray.

-- 
Raymond O'Donnell // Galway // Ireland
ray@rodonnell.ie





^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: Phone number type extension
  2019-09-28 09:11 Phone number type extension stan <stanb@panix.com>
@ 2019-09-28 23:12 ` Andreas 'ads' Scherbaum <ads@pgug.de>
  1 sibling, 0 replies; 4+ messages in thread

From: Andreas 'ads' Scherbaum @ 2019-09-28 23:12 UTC (permalink / raw)
  To: stan <stanb@panix.com>; pgsql-general

On 28.09.19 11:11, stan wrote:
> Is there any currently supported version of this? I found one using google,
> but it looks like it was last updated around version 8 of Postgres.
>

Found this:

https://github.com/blm768/pg-libphonenumber

Might be used in a CHECK constraint to validate phone numbers,
or a BEFORE trigger can normalize (or reject) the input value.


Regards,

-- 
				Andreas 'ads' Scherbaum
German PostgreSQL User Group
European PostgreSQL User Group - Board of Directors
Volunteer Regional Contact, Germany - PostgreSQL Project






^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2019-09-28 23:12 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-09-28 09:11 Phone number type extension stan <stanb@panix.com>
2019-09-28 10:13 ` Morris de Oryx <morrisdeoryx@gmail.com>
2019-09-28 11:42   ` Ray O'Donnell <ray@rodonnell.ie>
2019-09-28 23:12 ` Andreas 'ads' Scherbaum <ads@pgug.de>

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