Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fIbnQ-0007WM-7K for pgsql-general@arkaria.postgresql.org; Tue, 15 May 2018 15:23:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fIbnO-0005b7-6f for pgsql-general@arkaria.postgresql.org; Tue, 15 May 2018 15:23:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fIbnN-0005ay-Rf for pgsql-general@lists.postgresql.org; Tue, 15 May 2018 15:23:21 +0000 Received: from mail-qk0-x241.google.com ([2607:f8b0:400d:c09::241]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fIbnK-0005P3-Bj for pgsql-general@lists.postgresql.org; Tue, 15 May 2018 15:23:21 +0000 Received: by mail-qk0-x241.google.com with SMTP id 11-v6so474080qkk.4 for ; Tue, 15 May 2018 08:23:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=X3NDB1KY4cvd9iw41VnOZpI9enTyabPxPJ+NhCZ1vTc=; b=O1kNNzzZjqZHvNsrzt6RBPGCLA3HBUHfZaltgQ98m1J1uzhgrhqzjpiSCNTnnPtvVf 7GZaRIUFjpiZeIAG+YSGCLT4fQv8kPCkPlCZCVHaWrdicsFzI2Er7r4NEW3JR25xKKeG b+ewu4BaDlsEK+itBke5EG3ce1czTRrKQGGstJylMQIjGeid69ZqRzlDK3HjNs4pu7EB xDxEuwKRKqq6djqja5Ou2PiQyBP8GxGLcpYGvP7M5A1YSfjCgLYymioT6ya5qEeInlqU FsqIOPn2Z/hiCUyA+25wBP5ZaOQ5dIxZBVbcAfTIhGyGdor2gwx08++JzWvi/gmidIqo CE3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=X3NDB1KY4cvd9iw41VnOZpI9enTyabPxPJ+NhCZ1vTc=; b=fLDOqx8TbImMiUHILnFDYiKFD1coiRSIMprCb4aZT0QattlIsVejbnPsyhjSzQ4Juh zGx8fzkmQN/DqIYgPf7MwW9wmd6ixLs2eZlSMqMOjuNfW91MR92Rlx4xgoLzuJV0Qiv0 MpuLDqNGZVzJo9eg39TIZloDb9+XP2CBE0sS1RN/fTooNEGDEwuVjOaagr6DQglzYYaP E/Uj0njSIFB1xy7+SNU3d+YrX0ynH9ErO42UhQTj3Aj/WQMhud4sxhILlzdD7a+18EgW 97LlsCi8NbPFRtKWpkUxBiFWyQOQrKrwM5M7CuacIYU6YZJyHgXpxauPlp+fi9uSu1yt 2qlA== X-Gm-Message-State: ALKqPweBMagBdNDAs53Is3jfhteQY5afWLdDmxEqxwFVvlD4lrnuMI1N WJv/w/H3A1DnOu1q4eofPz4r+Q== X-Google-Smtp-Source: AB8JxZr25Dh53jbTYhRt1lQNSiGsLCRoju0SYM9G/kQWooWQZSBdSonw67R1lldiMjsYS3RZAYu7nw== X-Received: by 2002:a37:8e82:: with SMTP id q124-v6mr13546886qkd.164.1526397796464; Tue, 15 May 2018 08:23:16 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([179.56.54.12]) by smtp.gmail.com with ESMTPSA id f21-v6sm199784qta.79.2018.05.15.08.23.15 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 15 May 2018 08:23:16 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 0CA374F5; Tue, 15 May 2018 11:23:14 -0400 (-04) Date: Tue, 15 May 2018 11:23:14 -0400 From: Alvaro Herrera To: John McKown Cc: tango ward , "pgsql-generallists.postgresql.org" Subject: Re: Control PhoneNumber Via SQL Message-ID: <20180515152314.ftp4h4efyjzvsdzg@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-May-15, John McKown wrote: > I don't have any code for you, if that is what you are soliciting. I did > find a couple of informative web sites which help explain how international > phone numbers are formatted. These are known as E.164 numbers. Michael Glaesemann wrote a e.164 datatype years ago, which I later tweaked slightly: https://github.com/alvherre/e164 I don't know its status -- not sure if it even compiles. But it might be a useful as a starting point. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services