Re: Data Type to store Leading Zero(0)

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: soumik(dot)bhattacharjee(at)kpn(dot)com
Cc: nidhig631(at)gmail(dot)com, pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Data Type to store Leading Zero(0)
Date: 2021-04-15 13:53:19
Message-ID: CAKFQuwbhqfARkOUc5oM1p+Czr1pb8YO=KximuScf3ged7LS7xw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Thu, Apr 15, 2021 at 6:47 AM <soumik(dot)bhattacharjee(at)kpn(dot)com> wrote:

>
> - Boolean is not possible as this is phone number.
>
>
Phone numbers, despite the word "number" in the name, aren't numbers. Use
text for them. Or, in the off chance you truly find the performance hit to
be unacceptable (I doubt this to be the case) use a made-up integer-like
identifier as the PK but then store the actual phone number as a second
text field.

David J.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Laurenz Albe 2021-04-15 13:54:29 Re: Data Type to store Leading Zero(0)
Previous Message soumik.bhattacharjee 2021-04-15 13:47:32 RE: Data Type to store Leading Zero(0)